mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
GODT-980: placeholder for user agent
This commit is contained in:
@ -78,13 +78,6 @@ type ClientConfig struct {
|
||||
// The client application name and version.
|
||||
AppVersion string
|
||||
|
||||
// The client application user agent in format `client name/client version (os)`, e.g.:
|
||||
// (Intel Mac OS X 10_15_3)
|
||||
// Mac OS X Mail/13.0 (3608.60.0.2.5) (Intel Mac OS X 10_15_3)
|
||||
// Thunderbird/1.5.0 (Ubuntu 18.04.4 LTS)
|
||||
// MSOffice 12 (Windows 10 (10.0))
|
||||
UserAgent string
|
||||
|
||||
// The client ID.
|
||||
ClientID string
|
||||
|
||||
@ -236,7 +229,7 @@ func (c *client) Do(req *http.Request, retryUnauthorized bool) (res *http.Respon
|
||||
func (c *client) doBuffered(req *http.Request, bodyBuffer []byte, retryUnauthorized bool) (res *http.Response, err error) { // nolint[funlen]
|
||||
isAuthReq := strings.Contains(req.URL.Path, "/auth")
|
||||
|
||||
req.Header.Set("User-Agent", c.cm.config.UserAgent)
|
||||
req.Header.Set("User-Agent", c.cm.userAgent.String())
|
||||
req.Header.Set("x-pm-appversion", c.cm.config.AppVersion)
|
||||
|
||||
if c.uid != "" {
|
||||
|
||||
Reference in New Issue
Block a user