http: Display gzipped log files in the browser.

This is a follow-up of 2280ae18eb. The gzipped
log files are supposed to be displayed directly in the browser and not
downloaded. Set "Content-Disposition" header to "inline" to ensure that.

* src/cuirass/http.scm (respond-gzipped-file): Set to "Content-Disposition" to
"inline".
This commit is contained in:
Mathieu Othacehe 2020-06-23 13:59:45 +02:00
parent 10b16ec092
commit 300f6253f6
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ Hydra format."
;; Return FILE with 'gzip' content-encoding.
(respond `((content-type . (text/plain (charset . "UTF-8")))
(content-encoding . (gzip))
(content-disposition . (form-data (filename . ,file)))
(content-disposition . (inline))
(x-raw-file . ,file))))
(define (respond-build-not-found build-id)