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:06a745c9-4959-f206-4534-da151b43c5db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC20:38B79:1E84D5C:2C19386:6A60A983 |
| html-safe-nonce | f786974c5d1ce1fb28de8f5c35fb3522b19e104a14b3a081a33a591e7f9b0da5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzIwOjM4Qjc5OjFFODRENUM6MkMxOTM4Njo2QTYwQTk4MyIsInZpc2l0b3JfaWQiOiIyMjMzMzMyNTIxMjQ5MDU3MTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4d49251bb2caab54368b6d64f19975f7ba955faec645752822eecb7d31a9c074 |
| 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 | 66af895cfa11168648b21cb54f2bdc3b0587503cc95c3040344b93f2cd4f9e08 |
| 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 | b2efb079bef4751afb19e51eb8a7bfb7a46dd1a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width