Skip to content

Commit 564b5c9

Browse files
committed
Merge pull request #3 from kbaribeau/master
Update docstrings to refer to specific RFCs
2 parents 4376813 + 08dbda6 commit 564b5c9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ring/middleware/absolute_redirects.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
(ns ring.middleware.absolute-redirects
2-
"Middleware for correcting relative redirects so they adhere to the HTTP RFC."
2+
"Middleware for replacing relative redirects with absolute redirects. Useful
3+
for clients that do not yet implement RFC 7231 (RFC 2616 does not allow
4+
relative redirects)."
35
(:require [ring.util.request :as req])
46
(:import [java.net URL MalformedURLException]))
57

@@ -29,7 +31,7 @@
2931
(defn wrap-absolute-redirects
3032
"Middleware that converts redirects to relative URLs into redirects to
3133
absolute URLs. While many browsers can handle relative URLs in the Location
32-
header, the HTTP RFC states that the Location header must contain an absolute
34+
header, RFC 2616 states that the Location header must contain an absolute
3335
URL."
3436
[handler]
3537
(fn [request]

0 commit comments

Comments
 (0)