Commit 8f9a36e
committed
fix: apply URL override to cached discovery docs and fix base_url path
Two bugs in the initial implementation:
- Cache path returned early without applying the URL rewrite, so
requests still went to googleapis.com after the first fetch
- base_url incorrectly prepended service name/version, causing
doubled path segments (e.g., gmail/v1/gmail/v1/...)
Extract apply_base_url_override() helper and call it in both the
cache and network paths. Set base_url to just the custom host since
method paths already contain the full API prefix.1 parent c22dc58 commit 8f9a36e
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | | - | |
269 | | - | |
270 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 279 | + | |
278 | 280 | | |
279 | | - | |
280 | | - | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
0 commit comments