Build URL using provided protocol
This commit is contained in:
parent
21a3f43103
commit
fc1b1e5666
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Proxy {
|
|||
url = url.replaceAll(_straySlashes, '');
|
||||
url = '$url/$mapping';
|
||||
|
||||
if (!url.startsWith('http')) url = 'http://$url';
|
||||
if (!url.startsWith(protocol)) url = '$protocol://$url';
|
||||
url = url.replaceAll(_straySlashes, '');
|
||||
|
||||
var headers = <String, String>{
|
||||
|
|
Loading…
Reference in a new issue