diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-18 20:33:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-18 20:33:53 (GMT) |
commit | c53c54cec414ce179376da39c8fa89d76c049ed4 (patch) | |
tree | 2fee5fde203c0df42689e4bd19fa7ce4100ce133 /library/http | |
parent | 12a22416413a587980cbb7d9c9bc361db5f3e419 (diff) | |
parent | cf11c42355fc78221b56e9dcb55ceff3b845b690 (diff) | |
download | tcl-c53c54cec414ce179376da39c8fa89d76c049ed4.zip tcl-c53c54cec414ce179376da39c8fa89d76c049ed4.tar.gz tcl-c53c54cec414ce179376da39c8fa89d76c049ed4.tar.bz2 |
Fix [13657a2dc3]: application/json is not a binary payload for http. http 2.9.0 -> 2.9.1
Diffstat (limited to 'library/http')
-rw-r--r-- | library/http/http.tcl | 4 | ||||
-rw-r--r-- | library/http/pkgIndex.tcl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index f82bced..0aa283f 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -11,7 +11,7 @@ package require Tcl 8.6- # Keep this in sync with pkgIndex.tcl and with the install directories in # Makefiles -package provide http 2.9.0 +package provide http 2.9.1 namespace eval http { # Allow resourcing to not clobber existing data @@ -2978,7 +2978,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 } } diff --git a/library/http/pkgIndex.tcl b/library/http/pkgIndex.tcl index 4f74635..f9f1176 100644 --- a/library/http/pkgIndex.tcl +++ b/library/http/pkgIndex.tcl @@ -1,2 +1,2 @@ if {![package vsatisfies [package provide Tcl] 8.6-]} {return} -package ifneeded http 2.9.0 [list tclPkgSetup $dir http 2.9.0 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister ::http::mapReply}}}] +package ifneeded http 2.9.1 [list tclPkgSetup $dir http 2.9.1 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister ::http::mapReply}}}] |