Skip to content

Commit 363cf1a

Browse files
authored
Merge pull request #1836 from kapouer/patch-2
node agent: ignore query http method. Fix #1835.
2 parents ac678ef + 05acc1a commit 363cf1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node/agent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class Agent extends AgentBase {
7878

7979
for (const name of methods) {
8080
const method = name.toUpperCase();
81+
if (method === "QUERY") continue;
8182
Agent.prototype[name] = function (url, fn) {
8283
const request_ = new request.Request(method, url);
8384

0 commit comments

Comments
 (0)