Skip to content

Commit

Permalink
Fixed transport not support issue
Browse files Browse the repository at this point in the history
  • Loading branch information
imkcat authored Aug 4, 2020
1 parent 39a12e0 commit f35b162
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 f35b162

Please sign in to comment.