Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #25 from jasny/fix-revive-response
Browse files Browse the repository at this point in the history
The response from `Response::revive()` should not be marked as stale.
  • Loading branch information
jasny authored Jan 20, 2017
2 parents e283da4 + 0404c3a commit 1e7203d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ public function revive()
$response->body->useGlobally();
}

$response->isStale = false;

return $response;
}

Expand Down
2 changes: 2 additions & 0 deletions tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ public function testRevive()

$this->assertInstanceof(Response::class, $response);
$this->assertNotSame($this->baseResponse, $response);

$this->assertFalse($response->isStale());
}

public function testReviveNonStale()
Expand Down

0 comments on commit 1e7203d

Please sign in to comment.