Skip to content

Commit

Permalink
whitelisted 201 status codes. At least one endpoint(statements) retur…
Browse files Browse the repository at this point in the history
…ns 201 if all is well.
  • Loading branch information
0sax committed Mar 4, 2021
1 parent c1380d8 commit a201ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gomono.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (g *gomono) makeRequest(method, url string, body io.Reader, headers []heade
return err
}

if resp.StatusCode == 200 {
if resp.StatusCode == 200 || resp.StatusCode == 201 {
err = json.Unmarshal(b, responseTarget)
if err != nil {
return err
Expand Down

0 comments on commit a201ceb

Please sign in to comment.