summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-18 20:22:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-18 20:22:32 (GMT)
commit5997f60c9a9066ffd37d4ae9a3dd32dd07ace15e (patch)
treeb8aae989bdbcb31e29332659c9ae94b5e9d216f8 /library/http/http.tcl
parentbb1eeada78e64c97e89d7bddf99cb8dcfe845d8c (diff)
downloadtcl-5997f60c9a9066ffd37d4ae9a3dd32dd07ace15e.zip
tcl-5997f60c9a9066ffd37d4ae9a3dd32dd07ace15e.tar.gz
tcl-5997f60c9a9066ffd37d4ae9a3dd32dd07ace15e.tar.bz2
Fix [13657a2dc3]: application/json is not a binary payload for http
Diffstat (limited to 'library/http/http.tcl')
-rw-r--r--library/http/http.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 75898c9..c1a27a4 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -1181,7 +1181,7 @@ proc http::IsBinaryContentType {type} {
# and so on.
if {$major eq "application"} {
set minor [string trimright $minor]
- if {$minor in {"xml" "xml-external-parsed-entity" "xml-dtd"}} {
+ if {$minor in {"json" "xml" "xml-external-parsed-entity" "xml-dtd"}} {
return false
}
}