guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: hydra: bayfront: Serve build logs with correct Content-Type.


From: Christopher Baines
Subject: 03/03: hydra: bayfront: Serve build logs with correct Content-Type.
Date: Thu, 6 Jan 2022 08:09:22 -0500 (EST)

cbaines pushed a commit to branch master
in repository maintenance.

commit 2de782addfba18b3c8112cc0fe8b5dcabbe231f0
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jan 6 13:08:02 2022 +0000

    hydra: bayfront: Serve build logs with correct Content-Type.
    
    So that browsers interpret the content correctly.
    
    * hydra/bayfront.scm (%bordeaux.guix.gnu.org-nginx-servers): Set
    Content-Type header for build logs.
---
 hydra/bayfront.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index a8698d1..74b7172 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -631,6 +631,7 @@ add_header Content-Type text/plain;")))
           (nginx-location-configuration
            (uri "~ /build/(.*)/log$")
            (body '("alias /var/lib/guix-build-coordinator/build-logs/$1/log;"
+                   "add_header Content-Type 'text/plain; charset=UTF-8';"
                    "gzip_static always;"
                    "gunzip on;"))))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]