Skip to content

Commit

Permalink
fix ua in proxy test
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Apr 10, 2017
1 parent ab4b796 commit aa319e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (p *proxyServer) run() {
p.t.Errorf("failed to read CONNECT req: %v", err)
return
}
if req.Method != http.MethodConnect || req.UserAgent() != "gRPC-go" {
if req.Method != http.MethodConnect || req.UserAgent() != grpcUA {
resp := http.Response{StatusCode: http.StatusMethodNotAllowed}
resp.Write(p.in)
p.in.Close()
Expand Down

0 comments on commit aa319e2

Please sign in to comment.