Skip to content

Commit 37b6a43

Browse files
committed
api key always required
1 parent bd93e4a commit 37b6a43

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/webpagetest.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ function get(config, pathname, proxy, agent, callback, encoding) {
9191
};
9292
}
9393

94-
if (encoding !== "binary") {
95-
options.headers["X-WPT-API-KEY"] = this.config.key;
96-
options.headers["accept-encoding"] = "gzip,deflate";
97-
options.headers["User-Agent"] = "WebpagetestNodeWrapper/v0.6.0";
98-
}
94+
// api key always required
95+
options.headers["X-WPT-API-KEY"] = this.config.key;
96+
options.headers["accept-encoding"] = "gzip,deflate";
97+
options.headers["User-Agent"] = "WebpagetestNodeWrapper/v0.7.4";
9998

10099
if (agent) {
101100
options.agent = agent;

0 commit comments

Comments
 (0)