mirror of https://github.com/adamdruppe/arsd.git
fix bug in handling relative redirects
This commit is contained in:
parent
a7d5c43c51
commit
a828c84939
5
http2.d
5
http2.d
|
@ -724,13 +724,16 @@ class HttpRequest {
|
||||||
this.cache = cache;
|
this.cache = cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Uri where;
|
||||||
|
|
||||||
private ICache cache;
|
private ICache cache;
|
||||||
|
|
||||||
/// Final url after any redirections
|
/// Final url after any redirections
|
||||||
string finalUrl;
|
string finalUrl;
|
||||||
|
|
||||||
void populateFromInfo(Uri where, HttpVerb method) {
|
void populateFromInfo(Uri where, HttpVerb method) {
|
||||||
auto parts = where;
|
auto parts = where.basedOn(this.where);
|
||||||
|
this.where = parts;
|
||||||
finalUrl = where.toString();
|
finalUrl = where.toString();
|
||||||
requestParameters.method = method;
|
requestParameters.method = method;
|
||||||
requestParameters.unixSocketPath = where.unixSocketPath;
|
requestParameters.unixSocketPath = where.unixSocketPath;
|
||||||
|
|
Loading…
Reference in New Issue