mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 16:36:07 +03:00
Update boundary regex to match RFC1341 (#283)
* Update boundary regex to match RFC1341
This commit is contained in:
parent
01e0c33ee8
commit
e177e13a0c
@ -40,6 +40,6 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertContains('username', $body);
|
||||
$this->assertContains('Stockholm', $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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user