Commit d79aa0a2 authored by Phil Höfer's avatar Phil Höfer
Browse files

Merge branch '187-oauth-integration-mittels-header-fur-vimeo' into 'development'

additionalHeaders eingebaut

Closes #187

See merge request !335
parents 7bd6c149 70fa62dc
......@@ -221,10 +221,7 @@ class Search extends Job implements ShouldQueue
$out .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
$out .= "Accept-Language: de,en-US;q=0.7,en;q=0.3\r\n";
$out .= "Accept-Encoding: gzip, deflate, br\r\n";
foreach (explode("$#!#$", $this->additionalHeaders) as $additionalHeader) {
$out .= str_replace("$#!!#$", "$#!#$", $additionalHeader);
}
$out .= $this->additionalHeaders;
$out .= str_replace("$#!#$", "\r\n", $this->additionalHeaders);
$out .= "Connection: keep-alive\r\n\r\n";
# Anfrage senden:
$sent = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment