Title: Change made by RequestEditorFn to req.URL lost · Issue #305 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: Change made by RequestEditorFn to req.URL lost · Issue #305 · oapi-codegen/oapi-codegen
X Title: Change made by RequestEditorFn to req.URL lost · Issue #305 · oapi-codegen/oapi-codegen
Description: I wanted to use RequestEditorFn to alter URL for a request, but as applyEditors() calls req = req.WithContext(ctx), changes are made to a cloned request, thus, at the end are lost.
Open Graph Description: I wanted to use RequestEditorFn to alter URL for a request, but as applyEditors() calls req = req.WithContext(ctx), changes are made to a cloned request, thus, at the end are lost.
X Description: I wanted to use RequestEditorFn to alter URL for a request, but as applyEditors() calls req = req.WithContext(ctx), changes are made to a cloned request, thus, at the end are lost.
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/305
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change made by RequestEditorFn to req.URL lost","articleBody":"I wanted to use RequestEditorFn to alter URL for a request, but as applyEditors() calls `req = req.WithContext(ctx)`, changes are made to a cloned request, thus, at the end are lost.","author":{"url":"https://github.com/rkojedzinszky","@type":"Person","name":"rkojedzinszky"},"datePublished":"2021-02-23T20:09:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/305/oapi-codegen/issues/305"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1e22714f-973f-b022-a875-ce3a42b23956 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B09C:163E47:15AC386:1FAA901:6A4E488A |
| html-safe-nonce | f27443d69d62dbc0fb66a26c3041984f541bbc5868984d8e1a9f572248bf49c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDlDOjE2M0U0NzoxNUFDMzg2OjFGQUE5MDE6NkE0RTQ4OEEiLCJ2aXNpdG9yX2lkIjoiNDE2MDkwNzEwOTE4MzkzMjU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7664795c7ba9a585563bc04c969dd6fab73d803de6b55d0eb58b21fde6c58d95 |
| hovercard-subject-tag | issue:814792757 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oapi-codegen/oapi-codegen/305/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a8deb26cceeae377550a035b3da4dcc430295d5e4ebf074d4c5a0399ba66020/oapi-codegen/oapi-codegen/issues/305 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a8deb26cceeae377550a035b3da4dcc430295d5e4ebf074d4c5a0399ba66020/oapi-codegen/oapi-codegen/issues/305 |
| og:image:alt | I wanted to use RequestEditorFn to alter URL for a request, but as applyEditors() calls req = req.WithContext(ctx), changes are made to a cloned request, thus, at the end are lost. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rkojedzinszky |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/oapi-codegen/oapi-codegen git https://github.com/oapi-codegen/oapi-codegen.git |
| octolytics-dimension-user_id | 142752710 |
| octolytics-dimension-user_login | oapi-codegen |
| octolytics-dimension-repository_id | 173009358 |
| octolytics-dimension-repository_nwo | oapi-codegen/oapi-codegen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 173009358 |
| octolytics-dimension-repository_network_root_nwo | oapi-codegen/oapi-codegen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width