mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 13:44:12 +00:00
Host parse url
This commit is contained in:
parent
a23ef4ba1a
commit
a286b17707
1 changed files with 3 additions and 6 deletions
|
@ -53,8 +53,7 @@ class Auth {
|
|||
];
|
||||
|
||||
if($this->application_url !== '') {
|
||||
array_push($headers, "Host: $this->application_url");
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
array_push($headers, "Host: " . parse_url($this->application_url, PHP_URL_HOST));
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
|
||||
|
@ -131,8 +130,7 @@ class Auth {
|
|||
];
|
||||
|
||||
if($this->application_url !== '') {
|
||||
array_push($headers, "Host: $this->application_url");
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
array_push($headers, "Host: " . parse_url($this->application_url, PHP_URL_HOST));
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
|
||||
|
@ -243,8 +241,7 @@ class Auth {
|
|||
];
|
||||
|
||||
if($this->application_url !== '') {
|
||||
array_push($headers, "Host: " . $this->application_url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
array_push($headers, "Host: " . parse_url($this->application_url, PHP_URL_HOST));
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
|
||||
|
|
Loading…
Reference in a new issue