Skip to content

Commit

Permalink
Update graphql/handler/transport/options.go
Browse files Browse the repository at this point in the history
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
  • Loading branch information
StevenACoffman and giautm authored Apr 11, 2022
1 parent 596b8a0 commit 5ea385b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/handler/transport/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (o Options) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphEx
}

func (o Options) allowedMethods() string {
if o.AllowedMethods == nil {
if len(o.AllowedMethods) == 0 {
return "OPTIONS, GET, POST"
}
return strings.Join(o.AllowedMethods, ", ")
Expand Down

0 comments on commit 5ea385b

Please sign in to comment.