@uxf/resizer 11.48.0 → 11.58.0
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/next-route.js +2 -1
- package/src/next-route.ts +1 -1
package/package.json
CHANGED
package/src/next-route.js
CHANGED
|
@@ -74,7 +74,8 @@ async function StaticGET(request) {
|
|
|
74
74
|
}
|
|
75
75
|
// proxy na dev
|
|
76
76
|
async function ProxyGET(request) {
|
|
77
|
+
var _a;
|
|
77
78
|
const url = new URL(request.url);
|
|
78
79
|
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}${url.pathname}`);
|
|
79
|
-
return new Response(response.body);
|
|
80
|
+
return new Response(response.body, { headers: { "Content-Type": (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "" } });
|
|
80
81
|
}
|
package/src/next-route.ts
CHANGED
|
@@ -64,5 +64,5 @@ export async function StaticGET(request: Request) {
|
|
|
64
64
|
export async function ProxyGET(request: Request) {
|
|
65
65
|
const url = new URL(request.url);
|
|
66
66
|
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}${url.pathname}`);
|
|
67
|
-
return new Response(response.body);
|
|
67
|
+
return new Response(response.body, { headers: { "Content-Type": response.headers.get("content-type") ?? "" } });
|
|
68
68
|
}
|