Skip to content

Commit

Permalink
fix: Minor performance boost
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor-x86 committed Dec 19, 2020
1 parent 832d93d commit 2d406b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func handler(ctx *fasthttp.RequestCtx) {
}

// For CORS acknowledge
if string(ctx.Method()) == "OPTIONS" {
if ctx.IsOptions() {
ctx.SetStatusCode(204)
return
}
Expand Down

0 comments on commit 2d406b0

Please sign in to comment.