Skip to content

Commit f8dd974

Browse files
committed
Post to API with correct content-type header
1 parent 0b9a2dc commit f8dd974

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func SubmitAssignment(config configuration.Config, filePath string, code []byte)
131131
}
132132

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

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

0 commit comments

Comments
 (0)