File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ public function getRemoteHost()
291291 */
292292 public function getRawBody ()
293293 {
294- return $ this ->rawBodyCallback ? call_user_func ($ this ->rawBodyCallback ) : NULL ;
294+ return $ this ->rawBodyCallback ? ($ this ->rawBodyCallback )( ) : NULL ;
295295 }
296296
297297
Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ public function getBaseUrl()
410410 */
411411 public function getRelativeUrl ()
412412 {
413- return ( string ) substr ($ this ->getAbsoluteUrl (), strlen ($ this ->getBaseUrl ()));
413+ return substr ($ this ->getAbsoluteUrl (), strlen ($ this ->getBaseUrl ()));
414414 }
415415
416416
Original file line number Diff line number Diff line change @@ -23,15 +23,13 @@ $response = new Http\Response;
2323
2424$ response ->setCookie ('test ' , 'value ' , 0 );
2525$ headers = array_values (array_diff (headers_list (), $ old , ['Set-Cookie: ' ]));
26- $ headers = str_replace ('HttpOnly ' , 'httponly ' , $ headers );
2726Assert::same ([
28- 'Set-Cookie: test=value; path=/; httponly ' ,
27+ 'Set-Cookie: test=value; path=/; HttpOnly ' ,
2928], $ headers );
3029
3130
3231$ response ->setCookie ('test ' , 'newvalue ' , 0 );
3332$ headers = array_values (array_diff (headers_list (), $ old , ['Set-Cookie: ' ]));
34- $ headers = str_replace ('HttpOnly ' , 'httponly ' , $ headers );
3533Assert::same ([
36- 'Set-Cookie: test=newvalue; path=/; httponly ' ,
34+ 'Set-Cookie: test=newvalue; path=/; HttpOnly ' ,
3735], $ headers );
You can’t perform that action at this time.
0 commit comments