Skip to content

Commit

Permalink
cmd/vinegar: proper merlin status code check
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Dec 9, 2023
1 parent 582938f commit 2712ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vinegar/merlin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func SubmitMerlin() error {
}
defer resp.Body.Close()

if resp.Status != "202" {
if resp.StatusCode != http.StatusAccepted {
return fmt.Errorf("merlin: bad status: %s", resp.Status)
}

Expand Down

0 comments on commit 2712ba4

Please sign in to comment.