diff options
| author | Michael Merickel <github@m.merickel.org> | 2019-01-05 13:01:37 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-05 13:01:37 -0600 |
| commit | c02f228b554d636d475ad1f34945fd91e4b1bfdf (patch) | |
| tree | 0a34a7546d4f830f90322a9862f0b54ff0d55ffd /docs/narr/webob.rst | |
| parent | d00d868881e2f5260170b48deacc57a8c21f1392 (diff) | |
| parent | 6de6df2a4227958006fc567256d03feb2da43742 (diff) | |
| download | pyramid-c02f228b554d636d475ad1f34945fd91e4b1bfdf.tar.gz pyramid-c02f228b554d636d475ad1f34945fd91e4b1bfdf.tar.bz2 pyramid-c02f228b554d636d475ad1f34945fd91e4b1bfdf.zip | |
Merge pull request #3447 from mmerickel/drop-json-shim
stop overriding request.json_body from webob
Diffstat (limited to 'docs/narr/webob.rst')
| -rw-r--r-- | docs/narr/webob.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst index 665bbddc9..e0524583f 100644 --- a/docs/narr/webob.rst +++ b/docs/narr/webob.rst @@ -287,7 +287,7 @@ that has a body suitable for reading via ``request.json_body`` using Python's import json json_payload = json.dumps({'a':1}) - headers = {'Content-Type':'application/json; charset=utf-8'} + headers = {'Content-Type':'application/json'} req = urllib2.Request('http://localhost:6543/', json_payload, headers) resp = urllib2.urlopen(req) |
