From 372d46c8874fc4aebe439f48ac461fa10e28e637 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Wed, 18 Feb 2015 16:31:17 -0500 Subject: [PATCH] Web: http: Location header accepts URI-reference, not just absoluteURIs. The now obsolete RFC2616 section 14.30 required that the Location header be an absoluteURI, but RFC7231 section 7.1.2 allows it to contain any URI-reference. * module/web/http.scm: Use 'declare-relative-uri-header!' to declare the "Location" header. --- module/web/http.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/web/http.scm b/module/web/http.scm index d8c9ae66d..f8aa8dbbe 100644 --- a/module/web/http.scm +++ b/module/web/http.scm @@ -1859,9 +1859,9 @@ treated specially, and is just returned as a plain string." entity-tag? write-entity-tag) -;; Location = absoluteURI +;; Location = URI-reference ;; -(declare-uri-header! "Location") +(declare-relative-uri-header! "Location") ;; Proxy-Authenticate = 1#challenge ;;