We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3c631 commit b7475c0Copy full SHA for b7475c0
tests/Uri/Retrievers/FileGetContentsTest.php
@@ -59,6 +59,15 @@ public function testContentType()
59
$this->assertTrue($fetchContentType->invoke($res, array('Content-Type: application/json')));
60
$this->assertFalse($fetchContentType->invoke($res, array('X-Some-Header: whateverValue')));
61
}
62
+
63
+ public function testCanHandleHttp301PermanentRedirect()
64
+ {
65
+ $res = new FileGetContents();
66
67
+ $res->retrieve('http://asyncapi.com/definitions/2.0.0/asyncapi.json');
68
69
+ $this->assertSame('application/schema+json', $res->getContentType());
70
+ }
71
72
73
0 commit comments