Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2019-11-18
20:48 • Closed ticket [13657a2dc3]: application/json is not a binary payload for http</i... artifact: 95b4a2d953 user: jan.nijtmans
20:33
Fix [13657a2dc3]: application/json is not a binary payload for http. http 2.9.0 -> 2.9.1 check-in: 220316a26d user: jan.nijtmans tags: core-8-6-branch
20:22
Fix [13657a2dc3]: application/json is not a binary payload for http check-in: 1a92d8cb7e user: jan.nijtmans tags: core-8-5-branch
19:26 • New ticket [13657a2dc3] application/json is not a binary payload for http. artifact: 5091b0e1b2 user: anonymous

application/json is not a binary payload for http

Closed / Fixed13657a2dc35427f4ade49c7abaf5afaab4a016ddCreated 7 years agoUpdated 7 years ago
Descriptionplain2019-11-18 19:26:41
The application/json content type should not be handled as binary data.  It is equally as useful as application/xml.

Please add "json" to the minor types in the plain/text content detection.  Note that application/json must be in UTF8 encoding by the RFC.  It is text.

https://github.com/tcltk/tcl/blob/master/library/http/http.tcl#L3023

< if {$minor in {"xml" "xml-external-parsed-entity" "xml-dtd"}} {
> if {$minor in {"json" "xml" "xml-external-parsed-entity" "xml-dtd"}} {
Referenced by2
  • 220316a26dFix [13657a2dc3]: application/json is not a binary payload for http. http 2.9.0 -> 2.9.1 check-in2019-11-18 20:33:53
  • 1a92d8cb7eFix [13657a2dc3]: application/json is not a binary payload for http check-in2019-11-18 20:22:32
jan.nijtmansplain2019-11-18 20:48:42
Fixed now in all branches.

Thanks for the report!
Log in (anonymous is fine) to add a comment.