@mantiq/core 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/http/Request.ts +1 -1
- package/src/http/Response.ts +1 -1
package/package.json
CHANGED
package/src/http/Request.ts
CHANGED
|
@@ -280,7 +280,7 @@ export class MantiqRequest implements MantiqRequestContract {
|
|
|
280
280
|
} else if (contentType.includes('multipart/form-data')) {
|
|
281
281
|
const formData = await this.bunRequest.clone().formData()
|
|
282
282
|
for (const [key, value] of formData.entries()) {
|
|
283
|
-
if (value instanceof File) {
|
|
283
|
+
if (typeof value === 'object' && value instanceof File) {
|
|
284
284
|
const uploaded = new UploadedFile(value)
|
|
285
285
|
if (this.parsedFiles[key]) {
|
|
286
286
|
const existing = this.parsedFiles[key]!
|
package/src/http/Response.ts
CHANGED
|
@@ -93,7 +93,7 @@ export class MantiqResponse {
|
|
|
93
93
|
? `attachment; filename="${sanitized}"`
|
|
94
94
|
: `attachment; filename="${sanitized}"; filename*=UTF-8''${encodeURIComponent(sanitized)}`
|
|
95
95
|
|
|
96
|
-
return new Response(content, {
|
|
96
|
+
return new Response(content as any, {
|
|
97
97
|
headers: {
|
|
98
98
|
'Content-Type': mimeType ?? 'application/octet-stream',
|
|
99
99
|
'Content-Disposition': disposition,
|