From: Cory Benfield Date: Sat, 7 Jun 2014 08:53:12 +0000 (+0100) Subject: Update trivial mentions to RFC 2616. X-Git-Tag: v2.4.0~41^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22433163b35bb451e4804b8d757ef25d58e1171a;p=services%2Fpython-requests.git Update trivial mentions to RFC 2616. --- diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index f427361..ddf72da 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -325,8 +325,8 @@ We can view the server's response headers using a Python dictionary:: } The dictionary is special, though: it's made just for HTTP headers. According to -`RFC 2616 `_, HTTP -Headers are case-insensitive. +`RFC 7230 `_, HTTP Header names +are case-insensitive. So, we can access the headers using any capitalization we want:: diff --git a/requests/sessions.py b/requests/sessions.py index df85a25..4ec3d14 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -118,7 +118,7 @@ class SessionRedirectMixin(object): parsed = urlparse(url) url = parsed.geturl() - # Facilitate non-RFC2616-compliant 'location' headers + # Facilitate relative 'location' headers, as allowed by RFC 7231. # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource') # Compliant with RFC3986, we percent encode the url. if not urlparse(url).netloc: @@ -128,7 +128,7 @@ class SessionRedirectMixin(object): prepared_request.url = to_native_string(url) - # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4 + # http://tools.ietf.org/html/rfc7231#section-6.4.4 if (resp.status_code == codes.see_other and method != 'HEAD'): method = 'GET'