mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
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
This commit is contained in:
parent
0940b50f2c
commit
22ecc6f8aa
@ -38,7 +38,7 @@ exp.get_from_options = function(rid, url, options, callback) {
|
|||||||
request.get({
|
request.get({
|
||||||
url: url,
|
url: url,
|
||||||
headers: {
|
headers: {
|
||||||
"User-Agent": "https://crafatar.com"
|
"User-Agent": "Crafatar (+https://crafatar.com)"
|
||||||
},
|
},
|
||||||
timeout: config.server.http_timeout,
|
timeout: config.server.http_timeout,
|
||||||
followRedirect: false,
|
followRedirect: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user