Title: `ezhttp`: support for not following redirects · Issue #25 · function61/gokit · GitHub
Open Graph Title: `ezhttp`: support for not following redirects · Issue #25 · function61/gokit
X Title: `ezhttp`: support for not following redirects · Issue #25 · function61/gokit
Description: var ( // can't patch existing HTTP client because we could end up modifying `http.DefaultClient` // https://stackoverflow.com/a/38150816 noFollowRedirects = ezhttp.Client(&http.Client{ CheckRedirect: func(_ *http.Request, _ []*http.Reque...
Open Graph Description: var ( // can't patch existing HTTP client because we could end up modifying `http.DefaultClient` // https://stackoverflow.com/a/38150816 noFollowRedirects = ezhttp.Client(&http.Client{ CheckRedirec...
X Description: var ( // can't patch existing HTTP client because we could end up modifying `http.DefaultClient` // https://stackoverflow.com/a/38150816 noFollowRedirects = ezhttp.Client(&http.Client{ Chec...
Opengraph URL: https://github.com/function61/gokit/issues/25
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ezhttp`: support for not following redirects","articleBody":"```go\r\nvar (\r\n // can't patch existing HTTP client because we could end up modifying `http.DefaultClient`\r\n // https://stackoverflow.com/a/38150816\r\n\tnoFollowRedirects = ezhttp.Client(\u0026http.Client{\r\n\t\tCheckRedirect: func(_ *http.Request, _ []*http.Request) error {\r\n\t\t\t// no error - just don't follow redirects\r\n\t\t\treturn http.ErrUseLastResponse\r\n\t\t},\r\n\t})\r\n)\r\n```","author":{"url":"https://github.com/joonas-fi","@type":"Person","name":"joonas-fi"},"datePublished":"2023-09-28T08:05:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/25/gokit/issues/25"}
| 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:90710345-d4ac-060e-c5dc-852cfe98b685 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D21E:10DE3:DAE02:13FAD4:6A4BBD7C |
| html-safe-nonce | f897f4035b753c9ce113106fd9cce3fdf8fb97111979801662867ff25dec035c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjFFOjEwREUzOkRBRTAyOjEzRkFENDo2QTRCQkQ3QyIsInZpc2l0b3JfaWQiOiI3ODY5ODU4OTk1NjE5MjE2NzY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d217e618e0530c19dde338167bdfb99a30568cd80ea1772132b15ef866004cf4 |
| hovercard-subject-tag | issue:1916944141 |
| 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/function61/gokit/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a2ff4f9a80374c2e12efc9e72b7ff9de3dceb2d1c1a7f50435947a58c0e6a0cb/function61/gokit/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2ff4f9a80374c2e12efc9e72b7ff9de3dceb2d1c1a7f50435947a58c0e6a0cb/function61/gokit/issues/25 |
| og:image:alt | var ( // can't patch existing HTTP client because we could end up modifying `http.DefaultClient` // https://stackoverflow.com/a/38150816 noFollowRedirects = ezhttp.Client(&http.Client{ CheckRedirec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joonas-fi |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae1c14875555a1dd92bdef45baa6dd9aa796df891e4e471989f7117fe3139fc1 |
| turbo-cache-control | no-preview |
| go-import | github.com/function61/gokit git https://github.com/function61/gokit.git |
| octolytics-dimension-user_id | 22049800 |
| octolytics-dimension-user_login | function61 |
| octolytics-dimension-repository_id | 151857198 |
| octolytics-dimension-repository_nwo | function61/gokit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 151857198 |
| octolytics-dimension-repository_network_root_nwo | function61/gokit |
| 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 | b15c57117aeff522995a9578e1185f6c45d6c562 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width