-
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Issue
Setup:
- Deno Version: 1.16.2
- v8 Version: v8 9.7.106.2
- Typescript Version: typescript 4.4.2
- Opine HTTP Proxy Version: 2.9.1
- Opine Version: 1.9.1
Details
Archive files are being corrupted by opine proxy. To reproduce, run the app below and try fetching /archive.zip. In my testing, the resulting file is the same size as the original, but archive utilities throw errors saying it's corrupted.
import { opine } from "https://deno.land/x/opine@1.9.1/mod.ts";
import { proxy } from "https://deno.land/x/opineHttpProxy@2.9.1/mod.ts";
const app = opine();
app.get('/archive.zip', proxy('https://github.com', {
proxyReqUrlDecorator(url, req) {
url.pathname = '/asos-craigmorten/opine/archive/refs/tags/1.9.1.zip';
return url;
}
}));
app.listen(3000, () => console.log('listening on 3000'));
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working