Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 58ead37

Browse files
ignore disabled parameters
1 parent 0d85232 commit 58ead37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "insomnia-plugin-http-signature",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "Alessio Dionisi <hello@adns.io>",
55
"description": "HTTP Signature for Insomnia REST Client",
66
"repository": "github:adnsio/insomnia-plugin-http-signature",

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports.templateTags = [{
2626

2727
const parsedUrl = new URL(requestUrl)
2828
for (const parameter of request.parameters) {
29-
parsedUrl.searchParams.append(parameter.name, parameter.value)
29+
if (!parameter.disabled) parsedUrl.searchParams.append(parameter.name, parameter.value)
3030
}
3131

3232
const algorithmBits = 256

0 commit comments

Comments
 (0)