Remove Go1.6 support (#1492)

This commit is contained in:
dfawley
2017-10-04 13:57:10 -07:00
committed by GitHub
parent dc413bbc22
commit c8405557a4
18 changed files with 75 additions and 413 deletions

View File

@ -82,7 +82,8 @@ func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr string) (_
Header: map[string][]string{"User-Agent": {grpcUA}},
})
if err := sendHTTPRequest(ctx, req, conn); err != nil {
req = req.WithContext(ctx)
if err := req.Write(conn); err != nil {
return nil, fmt.Errorf("failed to write the HTTP request: %v", err)
}