소스 검색

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
jomo 9 년 전
부모
커밋
22ecc6f8aa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/networking.js

+ 1 - 1
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,