Fix a URI decoding issue
This caused a problem viewing this derivation /gnu/store/65r4488732qy6ilrh1ryb8xwmip1qnir-tklib-0.6.tar.gz?uuid=tklib-0-6.drv
This commit is contained in:
parent
f4a87ec059
commit
854f2cbba9
1 changed files with 2 additions and 2 deletions
|
|
@ -636,8 +636,8 @@
|
|||
;; content negotiation, so just use the path from the request
|
||||
(let ((path (uri-path (request-uri request))))
|
||||
(if (string-suffix? ".drv" path)
|
||||
(render-derivation path)
|
||||
(render-store-item path))))
|
||||
(render-derivation (uri-decode path))
|
||||
(render-store-item (uri-decode path)))))
|
||||
(('GET "gnu" "store" filename "formatted")
|
||||
(if (string-suffix? ".drv" filename)
|
||||
(render-formatted-derivation (string-append "/gnu/store/" filename))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue