Skip to content

Commit

Permalink
Post to API with correct content-type header
Browse files Browse the repository at this point in the history
  • Loading branch information
kytrinyx committed Dec 14, 2013
1 parent 0b9a2dc commit f8dd974
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func SubmitAssignment(config configuration.Config, filePath string, code []byte)
}

req.Header.Set("User-Agent", fmt.Sprintf("github.com/exercism/cli v%s", VERSION))
req.Header.Set("Content-Type", "application/json")

resp, err := http.DefaultClient.Do(req)
if err != nil {
Expand Down

0 comments on commit f8dd974

Please sign in to comment.