guix-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Mathieu Othacehe
Date: Fri, 23 Apr 2021 09:12:06 -0400 (EDT)

branch: master
commit 961a655cc299bc124be119edcbeb4ce120e76cf9
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Fri Apr 23 15:10:14 2021 +0200

    Use the text/html content type.
    
    Using the application/xhtml+xml causes issues when using bootstrap.js.
    
    * src/cuirass/http.scm (url-handler): Use the text/html content type.
---
 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 5de391c..ec6b2b0 100644
--- a/src/cuirass/http.scm
+++ b/src/cuirass/http.scm
@@ -496,7 +496,7 @@ passed, only display JOBS targeting this SYSTEM."
 
   (define* (respond-html body #:key code)
     (respond
-     (let ((content-type '((content-type . (application/xhtml+xml)))))
+     (let ((content-type '((content-type . (text/html)))))
        (if code
            (build-response #:headers content-type #:code code)
            content-type))



reply via email to

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