Skip to content

Commit

Permalink
set content-type back to default after file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bjuan210302 authored Jan 24, 2024
1 parent 551de6c commit 5b89c06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func (c *Client) UploadOrUpdateFile(

var response FileUploadResponse
_, err = c.Do(req, &response)

// set content-type back to default after request
c.clientTransport.header.Set("content-type", "application/json")

if err != nil {
return FileUploadResponse{}, err
}
Expand Down

0 comments on commit 5b89c06

Please sign in to comment.