Skip to content

Commit

Permalink
Always expect headers to be set
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Morton committed Feb 17, 2014
1 parent c52ac16 commit 3403a77
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Lily/Adapter/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ private function persistCookies($response, $nextRequest)
$cookies[$_cookie['name']] = $_cookie['value'];
}

if (isset($nextRequest['headers'])) {
$nextRequest['headers'] += compact('cookies');
} else {
$nextRequest['headers'] = compact('cookies');
}
$nextRequest['headers'] += compact('cookies');
}

return $nextRequest;
Expand Down

0 comments on commit 3403a77

Please sign in to comment.