Skip to content

Commit

Permalink
Simplify NJS variable, order import
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Aug 4, 2023
1 parent 56387b9 commit 0faabeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions container/nginx/njs/ipfs-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ function setHeaders(req) {
}

if (name) {
const value = `attachment; filename="${name}"`;
req.headersOut["content-disposition"] = value;
req.headersOut["content-disposition"] = `attachment; filename="${name}"`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion container/shim/src/lib/ocsp/check.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { promisify } from "node:util";
import rfc2560 from "asn1.js-rfc2560";

import { generate } from "./request.js";
import { getAuthorityInfo, getResponse } from "./utils.js";
import { verify } from "./verify.js";
import { promisify } from "node:util";

const asyncGetResponse = promisify(getResponse);

Expand Down

0 comments on commit 0faabeb

Please sign in to comment.