From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arun Isaac Newsgroups: gmane.lisp.guile.bugs Subject: bug#30076: [PATCH] web: Recognize JSON content type as text. Date: Thu, 11 Jan 2018 11:01:17 +0530 Message-ID: <20180111053117.4597-1-arunisaac@systemreboot.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515648676 4749 195.159.176.226 (11 Jan 2018 05:31:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 05:31:16 +0000 (UTC) To: 30076@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jan 11 06:31:12 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZVSF-0000c8-E1 for guile-bugs@m.gmane.org; Thu, 11 Jan 2018 06:31:07 +0100 Original-Received: from localhost ([::1]:42746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZVUF-000286-6O for guile-bugs@m.gmane.org; Thu, 11 Jan 2018 00:33:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZVU9-00027j-OB for bug-guile@gnu.org; Thu, 11 Jan 2018 00:33:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZVU6-0002tx-Jc for bug-guile@gnu.org; Thu, 11 Jan 2018 00:33:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZVU6-0002to-Fz for bug-guile@gnu.org; Thu, 11 Jan 2018 00:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZVU6-0007ce-5B for bug-guile@gnu.org; Thu, 11 Jan 2018 00:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 11 Jan 2018 05:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30076 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151564872429232 (code B ref -1); Thu, 11 Jan 2018 05:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jan 2018 05:32:04 +0000 Original-Received: from localhost ([127.0.0.1]:51636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZVTA-0007bQ-D4 for submit@debbugs.gnu.org; Thu, 11 Jan 2018 00:32:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZVT8-0007aw-L5 for submit@debbugs.gnu.org; Thu, 11 Jan 2018 00:32:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZVT2-0001zH-Nb for submit@debbugs.gnu.org; Thu, 11 Jan 2018 00:31:57 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZVT2-0001z4-KN for submit@debbugs.gnu.org; Thu, 11 Jan 2018 00:31:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZVT1-0001x0-Mr for bug-guile@gnu.org; Thu, 11 Jan 2018 00:31:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZVSy-0001v1-Fy for bug-guile@gnu.org; Thu, 11 Jan 2018 00:31:55 -0500 Original-Received: from vultr.systemreboot.net ([45.77.148.100]:53872) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZVSy-0001qK-0u for bug-guile@gnu.org; Thu, 11 Jan 2018 00:31:52 -0500 Original-Received: from [117.192.104.45] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90) (envelope-from ) id 1eZVSg-00024Q-Oq; Thu, 11 Jan 2018 11:01:34 +0530 X-Mailer: git-send-email 2.15.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8957 Archived-At: * 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