From 4c42c51b044011bcbf08b9d7c6a3ea1c4ca0a249 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Wed, 11 Dec 2024 17:16:13 +0400 Subject: [PATCH] add user-agent --- lib/json-http-service.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/json-http-service.js b/lib/json-http-service.js index e8901ea6..7876aa9d 100644 --- a/lib/json-http-service.js +++ b/lib/json-http-service.js @@ -47,6 +47,7 @@ JsonHttpService.prototype = { return new Promise((resolve, reject) => { sua.post(self.url) .set('Content-Type', 'application/json') + .set('User-Agent', 'W3C/Echidna') .auth(self.user, self.pass) .set(self.headers) .send(body)