Last active
October 12, 2020 01:18
-
-
Save Cosmologist/e2441cd45c5aec853f50439af53d48c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add the specified HTTP header to the prepared request | |
*/ | |
function addHeader(Symfony\Component\BrowserKit\Client $client, string $name, $value) | |
{ | |
$client->setServerParameter('http-' . $name, $value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment