1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-19 19:20:23 +02:00

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.
This commit is contained in:
Mark H Weaver 2015-02-18 16:31:17 -05:00
parent 9f0ec10fc9
commit 372d46c887

View file

@ -1859,9 +1859,9 @@ treated specially, and is just returned as a plain string."
entity-tag? entity-tag?
write-entity-tag) write-entity-tag)
;; Location = absoluteURI ;; Location = URI-reference
;; ;;
(declare-uri-header! "Location") (declare-relative-uri-header! "Location")
;; Proxy-Authenticate = 1#challenge ;; Proxy-Authenticate = 1#challenge
;; ;;