guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 02/03: Web: http: Location header accepts URI-reference,


From: Mark H. Weaver
Subject: [Guile-commits] 02/03: Web: http: Location header accepts URI-reference, not just absoluteURIs.
Date: Mon, 02 Mar 2015 03:04:22 +0000

mhw pushed a commit to branch stable-2.0
in repository guile.

commit 372d46c8874fc4aebe439f48ac461fa10e28e637
Author: Mark H Weaver <address@hidden>
Date:   Wed Feb 18 16:31:17 2015 -0500

    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 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/web/http.scm b/module/web/http.scm
index d8c9ae6..f8aa8db 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
 ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]