Skip to content

Commit

Permalink
Merge pull request #25 from bjuan210302/bjuan210302fix/uploadfile-ove…
Browse files Browse the repository at this point in the history
…rriding-content-type

set content-type back to default after file upload
  • Loading branch information
tranhoangvuit authored May 7, 2024
2 parents 551de6c + 5b89c06 commit c1cfc22
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 c1cfc22

Please sign in to comment.