Skip to content

Commit 3b2af3a

Browse files
committed
fix: multipart boundary regex
1 parent 9a0ba38 commit 3b2af3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ODataBatchResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(IODataRequest $request, string $body, int $httpStatu
3838
private function extractBoundary(): string
3939
{
4040
$contentType = $this->getContentTypeHeader();
41-
if ($contentType !== null && preg_match('/^multipart\/mixed;\s*boundary=(["\']?)([^"\';]+)\1$/', $contentType, $matches)) {
41+
if ($contentType !== null && preg_match('/^multipart\/mixed;\s*boundary=(["\']?)([^"\';]+)\1/', $contentType, $matches)) {
4242
return $matches[2];
4343
}
4444

0 commit comments

Comments
 (0)