From 9bb6b7ae910f1f6ac4ce4d1ef219e379d976c415 Mon Sep 17 00:00:00 2001 From: Siddhant Shukla <70441430+Siddhantshukla814@users.noreply.github.com> Date: Thu, 3 Nov 2022 16:12:09 +0530 Subject: [PATCH] Header User-Agent added --- lib/webpagetest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/webpagetest.js b/lib/webpagetest.js index 68a172f..6415207 100644 --- a/lib/webpagetest.js +++ b/lib/webpagetest.js @@ -93,6 +93,7 @@ function get(config, pathname, proxy, agent, callback, encoding) { if (encoding !== "binary") { options.headers["accept-encoding"] = "gzip,deflate"; + options.headers["User-Agent"] = "WebpagetestNodeWrapper/v0.6.0"; } if (agent) {