Skip to content

Commit

Permalink
Merge pull request #52 from peter-edge/with-insecure-fix
Browse files Browse the repository at this point in the history
add grpc.WithInsecure() as option for grpc.Dial call in template
  • Loading branch information
yugui committed Sep 15, 2015
2 parents d5405e7 + 1c9f6d5 commit 43f22ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/examplepb/a_bit_of_everything.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/examplepb/echo_service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/examplepb/flow_combination.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protoc-gen-grpc-gateway/gengateway/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ var (
// Register{{$svc.GetName}}HandlerFromEndpoint is same as Register{{$svc.GetName}}Handler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func Register{{$svc.GetName}}HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string) (err error) {
conn, err := grpc.Dial(endpoint)
conn, err := grpc.Dial(endpoint, grpc.WithInsecure())
if err != nil {
return err
}
Expand Down

0 comments on commit 43f22ab

Please sign in to comment.