Skip to content

Commit dc4827e

Browse files
committed
Try to fix the registry proxy
1 parent eaf46ba commit dc4827e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/webapp/app/v3/registryProxy.server.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export class RegistryProxy {
106106
headers: { ...request.headers },
107107
};
108108

109+
logger.debug("Building request", { options });
110+
109111
delete options.headers["host"];
110112
// delete options.headers["connection"];
111113
// delete options.headers["accept-encoding"];
@@ -261,6 +263,12 @@ export class RegistryProxy {
261263

262264
request.on("close", () => {
263265
logger.debug("Client closed the connection");
266+
267+
if (response.headersSent) {
268+
cleanupTempFile();
269+
return;
270+
}
271+
264272
proxyReq.destroy();
265273
cleanupTempFile();
266274
});

0 commit comments

Comments
 (0)