Skip to content

Commit 31c168e

Browse files
Copilothotlong
andcommitted
Address code review: make regex patterns consistent
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ce5427d commit 31c168e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/protocols/odata-v4/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ export class ODataV4Plugin implements RuntimePlugin {
12301230

12311231
try {
12321232
const contentType = req.headers['content-type'] || '';
1233-
const boundaryMatch = contentType.match(/boundary=["']?([^"';,\s]+)["']?/);
1233+
const boundaryMatch = contentType.match(/boundary=["']?([^"';,\s\r\n]+)["']?/);
12341234

12351235
if (!boundaryMatch) {
12361236
this.sendError(res, 400, 'Missing multipart boundary in Content-Type');

0 commit comments

Comments
 (0)