Skip to content

Commit

Permalink
Merge pull request 99designs#1267 from ImKcat/master
Browse files Browse the repository at this point in the history
Fixed transport not support issue
  • Loading branch information
lwc authored Aug 14, 2020
2 parents a2c470c + f26a60c commit 34a486d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/recipes/cors.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func main() {
}).Handler)


srv := handler.New(starwars.NewExecutableSchema(starwars.NewResolver()))
srv := handler.NewDefaultServer(starwars.NewExecutableSchema(starwars.NewResolver()))
srv.AddTransport(&transport.Websocket{
Upgrader: websocket.Upgrader{
CheckOrigin: func(r *http.Request) bool {
Expand Down

0 comments on commit 34a486d

Please sign in to comment.