File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ public function testRewriteSameUrl()
33
33
$ this ->assertEquals ('https://example.com/api/foo ' , $ request ->getUri ()->__toString ());
34
34
};
35
35
36
- $ request = new Request ('GET ' , 'https://example.com/foo ' );
36
+ $ request = new Request ('GET ' , 'https://example.com/foo ' , [ ' Content-Type ' => ' text/html ' ] );
37
37
$ this ->plugin ->handleRequest ($ request , $ verify , $ this ->callable );
38
38
39
39
// Make a second call with the same $request object
40
40
$ this ->plugin ->handleRequest ($ request , $ verify , $ this ->callable );
41
41
42
42
// Make a new call with a new object but same URL
43
- $ request = new Request ('GET ' , 'https://example.com/foo ' );
43
+ $ request = new Request ('GET ' , 'https://example.com/foo ' , [ ' Content-Type ' => ' text/plain ' ] );
44
44
$ this ->plugin ->handleRequest ($ request , $ verify , $ this ->callable );
45
45
}
46
46
You can’t perform that action at this time.
0 commit comments