diff options
author | Sandro Santilli <strk@kbt.io> | 2018-01-22 21:37:14 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-01-22 22:37:14 +0200 |
commit | 00d08473b8fd4501100119808253a2e1afc6fd7f (patch) | |
tree | 1cea5c113e239d2b297ac54ffcdc208ad3ad4741 /modules/httplib | |
parent | 1ce35724094f8edc124ffe4b4e1f06a99ad0c646 (diff) | |
download | gitea-00d08473b8fd4501100119808253a2e1afc6fd7f.tar.gz gitea-00d08473b8fd4501100119808253a2e1afc6fd7f.zip |
Use GiteaServer as the user agent for http requests (#3404)
Otherwise we're still presenting ourselves as GogsServer...
Diffstat (limited to 'modules/httplib')
-rw-r--r-- | modules/httplib/httplib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/httplib/httplib.go b/modules/httplib/httplib.go index f2d9a2bfaa..88190704bb 100644 --- a/modules/httplib/httplib.go +++ b/modules/httplib/httplib.go @@ -25,7 +25,7 @@ import ( "time" ) -var defaultSetting = Settings{false, "GogsServer", 60 * time.Second, 60 * time.Second, nil, nil, nil, false} +var defaultSetting = Settings{false, "GiteaServer", 60 * time.Second, 60 * time.Second, nil, nil, nil, false} var defaultCookieJar http.CookieJar var settingMutex sync.Mutex |