-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
In google.golang.org/api/transport/http.NewClient, execution eventually reaches this code:
google-api-go-client/transport/http/dial.go
Lines 101 to 107 in 88e8ed9
| headers := http.Header{} | |
| if ds.QuotaProject != "" { | |
| headers.Set("X-goog-user-project", ds.QuotaProject) | |
| } | |
| if ds.RequestReason != "" { | |
| headers.Set("X-goog-request-reason", ds.RequestReason) | |
| } |
Note that the user agent isn't set, whereas it is in the other code path:
google-api-go-client/transport/http/dial.go
Line 164 in 88e8ed9
| userAgent: settings.UserAgent, |
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.