From 8385fb397bf9c4d0af9d9762dc4542b49343a9b3 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Fri, 19 Jul 2013 14:03:20 +0100 Subject: [PATCH] Remove charset from JSON types: not valid. --- docs/user/quickstart.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index d81ce0f..51c85ef 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -298,7 +298,7 @@ We can view the server's response headers using a Python dictionary:: 'server': 'nginx/1.0.4', 'x-runtime': '148ms', 'etag': '"e1ca502697e5c9317743dc078f67693f"', - 'content-type': 'application/json; charset=utf-8' + 'content-type': 'application/json' } The dictionary is special, though: it's made just for HTTP headers. According to @@ -308,10 +308,10 @@ Headers are case-insensitive. So, we can access the headers using any capitalization we want:: >>> r.headers['Content-Type'] - 'application/json; charset=utf-8' + 'application/json' >>> r.headers.get('content-type') - 'application/json; charset=utf-8' + 'application/json' Cookies -- 2.34.1