unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#30076: [PATCH] web: Recognize JSON content type as text.
@ 2018-01-11  5:31 Arun Isaac
  2018-01-31  3:31 ` Mark H Weaver
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2018-01-11  5:31 UTC (permalink / raw)
  To: 30076

* 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






^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-02  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11  5:31 bug#30076: [PATCH] web: Recognize JSON content type as text Arun Isaac
2018-01-31  3:31 ` Mark H Weaver
2018-01-31  6:04   ` Mark H Weaver
2018-02-02  7:31     ` Arun Isaac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).