From cb33e553ee537da4915f9055f8cdf9bf32113aed Mon Sep 17 00:00:00 2001 From: Vasiliy Faronov Date: Mon, 2 May 2016 15:35:05 +0300 Subject: [1.9.x] Fixed #26567 -- Updated references to obsolete RFC2616. Didn't touch comments where it wasn't obvious that the code adhered to the newer standard. Backport of ac77c55bc5fc54cd763a7ae426784650a8cc97c9 from master --- docs/topics/conditional-view-processing.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/topics/conditional-view-processing.txt') diff --git a/docs/topics/conditional-view-processing.txt b/docs/topics/conditional-view-processing.txt index 96c21e15dd..94142954a5 100644 --- a/docs/topics/conditional-view-processing.txt +++ b/docs/topics/conditional-view-processing.txt @@ -25,10 +25,10 @@ Depending on the header, if the page has been modified or does not match the ``ETag`` sent by the client, a 412 status code (Precondition Failed) may be returned. -.. _If-match: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.24 -.. _If-none-match: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26 -.. _If-modified-since: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.25 -.. _If-unmodified-since: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.28 +.. _If-match: https://tools.ietf.org/html/rfc7232#section-3.1 +.. _If-none-match: https://tools.ietf.org/html/rfc7232#section-3.2 +.. _If-modified-since: https://tools.ietf.org/html/rfc7232#section-3.3 +.. _If-unmodified-since: https://tools.ietf.org/html/rfc7232#section-3.4 When you need more fine-grained control you may use per-view conditional processing functions. @@ -50,7 +50,7 @@ functions to provide an "early bailout" option for the view processing. Telling the client that the content has not been modified since the last request, perhaps. -.. _ETag: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 +.. _ETag: https://tools.ietf.org/html/rfc7232#section-2.3 These two functions are passed as parameters the ``django.views.decorators.http.condition`` decorator. This decorator uses -- cgit v1.3