[Pkg-javascript-devel] Bug#1108893: unblock: node-superagent/9.0.1-2
Yadd
yadd at debian.org
Mon Jul 7 06:19:10 BST 2025
Package: release.debian.org
Severity: normal
X-Debbugs-Cc: node-superagent at packages.debian.org, kapouer at debian.org, yadd at debian.org
Control: affects -1 + src:node-superagent
User: release.debian.org at packages.debian.org
Usertags: unblock
[ Reason ]
Due to nodejs changes, node-superagent autopkgtest started to fail
because nodejs changed the http query method.
[ Impact ]
Bad management of the HTTP QUERY method
[ Tests ]
Test passed with the patch (which fixes FTBFS #1108818)
[ Risks ]
No risk, patch is trivial
[ Checklist ]
[X] all changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in testing
[ Other info ]
Patch is taken from upstream
Best regards,
Xavier
unblock node-superagent/9.0.1-2
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index 6af31b2..16049a2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+node-superagent (9.0.1-2) unstable; urgency=medium
+
+ * Team upload
+ * patch: fix query method overwrite. Closes: #1108818.
+
+ -- J?r?my Lal <kapouer at melix.org> Sun, 06 Jul 2025 20:38:43 +0200
+
node-superagent (9.0.1-1) unstable; urgency=medium
* Team upload
diff --git a/debian/patches/fix-query-method.patch b/debian/patches/fix-query-method.patch
new file mode 100644
index 0000000..1905394
--- /dev/null
+++ b/debian/patches/fix-query-method.patch
@@ -0,0 +1,20 @@
+From 05acc1a664880a0a65bd30b9d1cb78eb11bc5fa5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= <kapouer at melix.org>
+Date: Sun, 6 Jul 2025 17:40:21 +0200
+Subject: [PATCH] node agent: ignore query http method
+
+This is needed with newer node versions having QUERY in http.METHODS.
+---
+ src/node/agent.js | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/src/node/agent.js
++++ b/src/node/agent.js
+@@ -80,6 +80,7 @@
+
+ for (const name of methods) {
+ const method = name.toUpperCase();
++ if (method === "QUERY") continue;
+ Agent.prototype[name] = function (url, fn) {
+ const request_ = new request.Request(method, url);
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0362bbd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-query-method.patch
More information about the Pkg-javascript-devel
mailing list