Commit 6dd3970
authored
Ignore setting PerRPCCreds as clientopts (#527)
When PerRPCCreds is used, we are already setting it as part of
DialParams, so we don't have to once again include it as part of
clientopts when creating the connection.
When included again as part of clientopts, it results in gRPC adding
duplicate Authorization header to the requests.
Issue: bazelbuild/reclient#27 (thanks to
@MarshallOfSound for debugging this)
Tested: I build with this, ran a sample command and confirmed with
mitmproxy that authorization header wasn't repeated.1 parent 042d985 commit 6dd3970
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
0 commit comments