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:
parent
9f0ec10fc9
commit
372d46c887
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue