Skip to content

Commit

Permalink
Merge pull request #35 from csaunders/bugfix/not_fully_buffering_streams
Browse files Browse the repository at this point in the history
Use a byte buffer for uploads
  • Loading branch information
csaunders committed Feb 26, 2015
2 parents 220cc93 + 43e1327 commit e3a49f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (t ThemeClient) request(event AssetEvent, method string) (*http.Response, e
data := map[string]Asset{"asset": event.Asset()}
encoded, err := json.Marshal(data)

req, err := http.NewRequest(method, path, strings.NewReader(string(encoded)))
req, err := http.NewRequest(method, path, bytes.NewBuffer(encoded))

if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit e3a49f5

Please sign in to comment.