Skip to content

Commit

Permalink
FIX: fix of redirection broken in recent HTTP scheme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Oct 27, 2020
1 parent 8b7e8b8 commit 0e9d145
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mezz/prot-http.reb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ REBOL [
}
Name: 'http
Type: 'module
Version: 0.3.4
Date: 25-Feb-2020
Version: 0.3.5
Date: 26-Oct-2020
File: %prot-http.r
Purpose: {
This program defines the HTTP protocol scheme for REBOL 3.
Expand Down Expand Up @@ -496,6 +496,7 @@ do-redirect: func [port [port!] new-uri [url! string! file!] /local spec state h
new-uri: as url! ajoin [spec/scheme "://" spec/host #":" spec/port-id new-uri]
]
new-uri: decode-url new-uri
spec/headers/host: new-uri/host

unless select new-uri 'port-id [
switch new-uri/scheme [
Expand Down

0 comments on commit 0e9d145

Please sign in to comment.