Skip to content

Commit

Permalink
Merge branch 'master' into v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed May 7, 2020
2 parents 4e3798f + 067c408 commit fe517b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Swlib\Http\StreamInterface;
use Swlib\Util\StringDataParserTrait;
use Swlib\Util\SpecialMarkTrait;
use Swlib\Http\Status;
use function Swlib\Http\stream_for;

class Response extends \Swlib\Http\Response
Expand Down Expand Up @@ -110,7 +109,8 @@ function __construct(Request $request)
$this->success = true;
break;
case 3:
if ($this->statusCode === Status::NOT_MODIFIED) {
if (!$this->hasHeader('Location')) {
/* not a redirect response */
$this->success = true;
break;
}
Expand Down

0 comments on commit fe517b2

Please sign in to comment.