Title: feat(http): automatically set request Content-Type header based on body type · Issue #2903 · angular/angular · GitHub
Open Graph Title: feat(http): automatically set request Content-Type header based on body type · Issue #2903 · angular/angular
X Title: feat(http): automatically set request Content-Type header based on body type · Issue #2903 · angular/angular
Description: This is specific to the XhrBackend implementation, based on request body types for which it doesn't automatically set Content-Type headers. When forming "write" requests inside of http.request, the "Content-Type" header should be set for...
Open Graph Description: This is specific to the XhrBackend implementation, based on request body types for which it doesn't automatically set Content-Type headers. When forming "write" requests inside of http.request, the...
X Description: This is specific to the XhrBackend implementation, based on request body types for which it doesn't automatically set Content-Type headers. When forming "write" requests inside of htt...
Opengraph URL: https://github.com/angular/angular/issues/2903
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(http): automatically set request Content-Type header based on body type","articleBody":"This is specific to the XhrBackend implementation, based on request body types for which it doesn't automatically set Content-Type headers.\n\nWhen forming \"write\" requests inside of `http.request`, the \"Content-Type\" header should be set for certain request body types that the user agent doesn't implicitly set, using the body extraction steps described here: https://fetch.spec.whatwg.org/#concept-bodyinit-extract\n- JSON -\u003e application/json\n- URLSearchParams -\u003e application/x-www-form-urlencoded;charset=UTF-8\n- Blob -\u003e If blob has set \"type\" property, set to its value\n\nThis should also be documented.\n\nWill leave `FormData` up to the user-agent, so it can set the appropriate boundary.\n","author":{"url":"https://github.com/jeffbcross","@type":"Person","name":"jeffbcross"},"datePublished":"2015-07-06T19:03:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2903/angular/issues/2903"}
| 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:45ba1f45-85db-c034-c350-17a1666739e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B850:A97AB:285C37:35E9D3:6A6026BC |
| html-safe-nonce | e0fdc7a0aaafadb2cd7b05ad86bdf1b002f1f7b4750b41374004ccd0d5454786 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODUwOkE5N0FCOjI4NUMzNzozNUU5RDM6NkE2MDI2QkMiLCJ2aXNpdG9yX2lkIjoiNjc5MDk5NTQ5MTgzOTU1MTE2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c2a2874718460260f91efa1740e87b194a6e4184b56ac6e1bb7cab544680266 |
| hovercard-subject-tag | issue:93352150 |
| 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/angular/angular/2903/issue_layout |
| twitter:image | https://opengraph.githubassets.com/608096aca0aafb143b14e00135a8c4777d81cbd1c6fb7c3fbecf7eef5104139f/angular/angular/issues/2903 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/608096aca0aafb143b14e00135a8c4777d81cbd1c6fb7c3fbecf7eef5104139f/angular/angular/issues/2903 |
| og:image:alt | This is specific to the XhrBackend implementation, based on request body types for which it doesn't automatically set Content-Type headers. When forming "write" requests inside of http.request, the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffbcross |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width