From 22ecc6f8aaa88c73883161098008dd42ce4faca3 Mon Sep 17 00:00:00 2001 From: jomo Date: Sun, 14 Feb 2016 17:37:41 +0100 Subject: [PATCH] make User-Agent RFC1945 compliant This is the product name without the optional '/' + version. The parens are a comment, the '+' preceding the URL is common practice https://tools.ietf.org/html/rfc1945#section-10.15 --- lib/networking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/networking.js b/lib/networking.js index 04e6ae0..e4aa4c9 100644 --- a/lib/networking.js +++ b/lib/networking.js @@ -38,7 +38,7 @@ exp.get_from_options = function(rid, url, options, callback) { request.get({ url: url, headers: { - "User-Agent": "https://crafatar.com" + "User-Agent": "Crafatar (+https://crafatar.com)" }, timeout: config.server.http_timeout, followRedirect: false,