Skip to content

Commit

Permalink
Fix deprecated methods in Http\Response
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 16, 2017
1 parent 86b8c7d commit a53e315
Show file tree
Hide file tree
Showing 2 changed files with 274 additions and 480 deletions.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Expand Up @@ -2341,7 +2341,7 @@ public function getCookieCollection()
*/
public function cors(ServerRequest $request, $allowedDomains = [], $allowedMethods = [], $allowedHeaders = [])
{
$origin = $request->header('Origin');
$origin = $request->getHeaderLine('Origin');
$ssl = $request->is('ssl');
$builder = new CorsBuilder($this, $origin, $ssl);
if (!$origin) {
Expand Down

0 comments on commit a53e315

Please sign in to comment.