[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: http: Display gzipped log files in the browser.
From: |
Mathieu Othacehe |
Subject: |
branch master updated: http: Display gzipped log files in the browser. |
Date: |
Tue, 23 Jun 2020 08:02:56 -0400 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix-cuirass.
The following commit(s) were added to refs/heads/master by this push:
new 300f625 http: Display gzipped log files in the browser.
300f625 is described below
commit 300f6253f6a0280c7abaf922bc319387cdbd9ce5
Author: Mathieu Othacehe <m.othacehe@gmail.com>
AuthorDate: Tue Jun 23 13:59:45 2020 +0200
http: Display gzipped log files in the browser.
This is a follow-up of 2280ae18eb25aa7034636c58bf288c9bd5a8fa3b. 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".
---
src/cuirass/http.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm
index ddf63df..3602f9f 100644
--- a/src/cuirass/http.scm
+++ b/src/cuirass/http.scm
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: http: Display gzipped log files in the browser.,
Mathieu Othacehe <=