@danhachuel/thunderbolt 0.7.40 → 0.7.41
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/scripts/cli.mjs +1 -2
package/package.json
CHANGED
package/scripts/cli.mjs
CHANGED
|
@@ -228,7 +228,6 @@ const dynamicChunkRecoveryScript = `<script data-thunderbolt-recovery="${package
|
|
|
228
228
|
const message = String(event.message || "");
|
|
229
229
|
if (/dynamically imported module|module script failed/i.test(message)) recover();
|
|
230
230
|
});
|
|
231
|
-
window.setTimeout(() => { try { sessionStorage.removeItem(key); } catch (_) {} }, 3500);
|
|
232
231
|
})();
|
|
233
232
|
</script>`;
|
|
234
233
|
|
|
@@ -260,7 +259,7 @@ const proxy = http.createServer((request, response) => {
|
|
|
260
259
|
port: backendPort,
|
|
261
260
|
method: request.method,
|
|
262
261
|
path: `${requestUrl.pathname}${requestUrl.search}`,
|
|
263
|
-
headers: { ...request.headers, host: `127.0.0.1:${backendPort}
|
|
262
|
+
headers: { ...request.headers, host: `127.0.0.1:${backendPort}`, "accept-encoding": "identity" },
|
|
264
263
|
}, (upstreamResponse) => {
|
|
265
264
|
const responseHeaders = { ...upstreamResponse.headers };
|
|
266
265
|
// Streamlit entrega HTML/JS de uma instância local que pode mudar após
|