Skip to content

Commit

Permalink
Change default from 202 to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Aug 22, 2024
1 parent 5bd445a commit 3bf10af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ var (

const (
// DefaultStatusCode means the response was accepted but we don't know if it actually succeeded
DefaultStatusCode = http.StatusAccepted
// DEV_NOTE: This used to be http.StatusAccepted (202), which is logical but causing
// more harm than good due to unexpected behaviour.
DefaultStatusCode = http.StatusOK
// "result" is expected to be present in a successful response.
// This is used to determine the type of status code to return.
resultText = "result"
Expand Down

0 comments on commit 3bf10af

Please sign in to comment.