We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e19a6f commit ce79d4cCopy full SHA for ce79d4c
src/emulator/storage/multipart.ts
@@ -125,7 +125,11 @@ export function parseObjectUploadMultipartRequest(
125
if (!contentTypeHeader.startsWith("multipart/related")) {
126
throw new Error(`Invalid Content-Type: ${contentTypeHeader}`);
127
}
128
- const boundaryId = contentTypeHeader.split("boundary=")[1];
+ let boundaryId = contentTypeHeader.split("boundary=")[1];
129
+
130
+ // fix for supporting boundaryId with quotes
131
+ boundaryId = boundaryId.replace(/"/g, "");
132
133
if (!boundaryId) {
134
throw new Error(`Invalid Content-Type header: ${contentTypeHeader}`);
135
0 commit comments