mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-14 16:07:42 +00:00
revert client change
This commit is contained in:
parent
17c503e0e3
commit
b6c7c58062
1 changed files with 0 additions and 4 deletions
|
@ -59,10 +59,6 @@ func (r *Request) HTTPRequest(ctx context.Context) (*http.Request, error) {
|
||||||
req.Header.Add("Accept", "application/json")
|
req.Header.Add("Accept", "application/json")
|
||||||
req.Header.Add("User-Agent", userAgent)
|
req.Header.Add("User-Agent", userAgent)
|
||||||
|
|
||||||
if len(r.body) > 0 {
|
|
||||||
req.Header.Add("Content-Type", "multipart/form-data")
|
|
||||||
}
|
|
||||||
|
|
||||||
if r.token != "" {
|
if r.token != "" {
|
||||||
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", r.token))
|
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", r.token))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue