Skip to content

Commit 4fb2245

Browse files
KN4CK3Rfuxiaohei
authored andcommitted
Do not set Accept header twice (go-gitea#28598)
Revert go-gitea#28550 Don't add the `Accept` header twice.
1 parent 38759cc commit 4fb2245

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/lfs/http_client.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ func (c *HTTPClient) batch(ctx context.Context, operation string, objects []Poin
7979
return nil, err
8080
}
8181

82-
req, err := createRequest(ctx, http.MethodPost, url, map[string]string{
83-
"Content-Type": MediaType,
84-
"Accept": MediaType,
85-
}, payload)
82+
req, err := createRequest(ctx, http.MethodPost, url, map[string]string{"Content-Type": MediaType}, payload)
8683
if err != nil {
8784
return nil, err
8885
}

0 commit comments

Comments
 (0)