Update trivial mentions to RFC 2616.
authorCory Benfield <lukasaoz@gmail.com>
Sat, 7 Jun 2014 08:53:12 +0000 (09:53 +0100)
committerCory Benfield <lukasaoz@gmail.com>
Sat, 7 Jun 2014 08:53:12 +0000 (09:53 +0100)
docs/user/quickstart.rst
requests/sessions.py

index f42736101e7eee7810efde891a82ed009877dc63..ddf72da81a5f8f95938175ca2646e756f655b360 100644 (file)
@@ -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://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>`_, HTTP
-Headers are case-insensitive.
+`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_, HTTP Header names
+are case-insensitive.
 
 So, we can access the headers using any capitalization we want::
 
index df85a25c1189782dd753cd0fce4670785a5de417..4ec3d14f99ed4105c5b6201b229f5b00a1f09727 100644 (file)
@@ -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'