Update boundary regex to match RFC1341 (#283)

* Update boundary regex to match RFC1341
This commit is contained in:
Sean Johnson 2017-02-18 10:53:21 -06:00 committed by GitHub
parent 01e0c33ee8
commit e177e13a0c

View File

@ -40,6 +40,6 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
$this->assertContains('username', $body); $this->assertContains('username', $body);
$this->assertContains('Stockholm', $body); $this->assertContains('Stockholm', $body);
$this->assertContains('city', $body); $this->assertContains('city', $body);
$this->assertRegExp('|^multipart/form-data; boundary=[0-9a-z]+$|si', $contentType); $this->assertRegExp('|^multipart/form-data; boundary=(?P<quote>"?)[\w\Q\'()+,-./:=?\E]{1,69}(?P=quote)$|si', $contentType);
} }
} }