Skip to content

Commit

Permalink
protoc-gen-grpc-gateway: flip request_context default to true
Browse files Browse the repository at this point in the history
Follow up to #473.

Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Oct 12, 2017
1 parent b2423da commit f0b2b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-grpc-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

var (
importPrefix = flag.String("import_prefix", "", "prefix to be added to go package paths for imported proto files")
useRequestContext = flag.Bool("request_context", false, "determine whether to use http.Request's context or not")
useRequestContext = flag.Bool("request_context", true, "determine whether to use http.Request's context or not")
allowDeleteBody = flag.Bool("allow_delete_body", false, "unless set, HTTP DELETE methods may not have a body")
)

Expand Down

0 comments on commit f0b2b8d

Please sign in to comment.