Skip to content

Commit 0e9d145

Browse files
committed
FIX: fix of redirection broken in recent HTTP scheme changes
related to: Oldes/Rebol-issues#2434
1 parent 8b7e8b8 commit 0e9d145

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mezz/prot-http.reb

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ REBOL [
1111
}
1212
Name: 'http
1313
Type: 'module
14-
Version: 0.3.4
15-
Date: 25-Feb-2020
14+
Version: 0.3.5
15+
Date: 26-Oct-2020
1616
File: %prot-http.r
1717
Purpose: {
1818
This program defines the HTTP protocol scheme for REBOL 3.
@@ -496,6 +496,7 @@ do-redirect: func [port [port!] new-uri [url! string! file!] /local spec state h
496496
new-uri: as url! ajoin [spec/scheme "://" spec/host #":" spec/port-id new-uri]
497497
]
498498
new-uri: decode-url new-uri
499+
spec/headers/host: new-uri/host
499500

500501
unless select new-uri 'port-id [
501502
switch new-uri/scheme [

0 commit comments

Comments
 (0)