Skip to content
Myr

Merge pull request #1470 from Lukasa/carset

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Remove charset from JSON types: not valid.

authored by Cory Benfield · committed by Cory Benfield · parents be88434, 8385fb3 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/user/quickstart.rst+3 added-3 removed
296 unmodified lines
297 'connection': 'close',298 'server': 'nginx/1.0.4',299 'x-runtime': '148ms',300 'etag': '"e1ca502697e5c9317743dc078f67693f"',301 'content-type': 'application/json; charset=utf-8'301 'content-type': 'application/json'302 }303304The dictionary is special, though: it's made just for HTTP headers. According to305`RFC 2616 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>`_, HTTP
1 unmodified line
307308So, we can access the headers using any capitalization we want::309310 >>> r.headers['Content-Type']311 'application/json; charset=utf-8'311 'application/json'312313 >>> r.headers.get('content-type')314 'application/json; charset=utf-8'314 'application/json'315316317Cookies318-------
98 unmodified lines