mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Adding test to prove issue with HTTP Header parsing in RestfulService
I have a header like: X-BB-Auth: xxxx and it is being given back to me as X-Bb-Auth - i want to prove the issue and the fix
This commit is contained in:
parent
c3f62de0eb
commit
378d829e8f
@ -172,12 +172,14 @@ class RestfulServiceTest extends SapphireTest {
|
||||
public function testHttpHeaderParseing() {
|
||||
$headers = "content-type: text/html; charset=UTF-8\r\n".
|
||||
"Server: Funky/1.0\r\n".
|
||||
"X-BB-ExampleMANycaPS: test\r\n".
|
||||
"Set-Cookie: foo=bar\r\n".
|
||||
"Set-Cookie: baz=quux\r\n".
|
||||
"Set-Cookie: bar=foo\r\n";
|
||||
$expected = array(
|
||||
'Content-Type' => 'text/html; charset=UTF-8',
|
||||
'Server' => 'Funky/1.0',
|
||||
'X-BB-ExampleMANycaPS' => 'test',
|
||||
'Set-Cookie' => array(
|
||||
'foo=bar',
|
||||
'baz=quux',
|
||||
|
Loading…
Reference in New Issue
Block a user