Skip to content

Commit

Permalink
nvm removed content disposition
Browse files Browse the repository at this point in the history
  • Loading branch information
Eltik committed Jul 2, 2023
1 parent e4ee905 commit d681d22
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions dist/libraries/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ async function proxyTs(url, headers, req, res) {
if (forceHTTPS) {
const proxy = node_https_1.default.request(options, (r) => {
r.headers["content-type"] = "video/mp2t";
r.headers["content-disposition"] = "attachment";
res.writeHead(r.statusCode ?? 200, r.headers);
r.pipe(res, {
end: true,
Expand All @@ -631,7 +630,6 @@ async function proxyTs(url, headers, req, res) {
else {
const proxy = node_http_1.default.request(options, (r) => {
r.headers["content-type"] = "video/mp2t";
r.headers["content-disposition"] = "attachment";
res.writeHead(r.statusCode ?? 200, r.headers);
r.pipe(res, {
end: true,
Expand Down
Loading

0 comments on commit d681d22

Please sign in to comment.