[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30076: [PATCH] web: Recognize JSON content type as text.
From: |
Arun Isaac |
Subject: |
bug#30076: [PATCH] web: Recognize JSON content type as text. |
Date: |
Thu, 11 Jan 2018 11:01:17 +0530 |
* module/web/response.scm (text-content-type?): Recognize JSON content
type as text.
---
module/web/response.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/module/web/response.scm b/module/web/response.scm
index 06e1c6dc1..679304c4d 100644
--- a/module/web/response.scm
+++ b/module/web/response.scm
@@ -184,6 +184,7 @@ reason phrase for the response's code."
represents a textual type such as `text/plain'."
(let ((type (symbol->string type)))
(or (string-prefix? "text/" type)
+ (string-suffix? "/json" type)
(string-suffix? "/xml" type)
(string-suffix? "+xml" type))))
--
2.15.1
- bug#30076: [PATCH] web: Recognize JSON content type as text.,
Arun Isaac <=