Title: fix(http): should throw an exception if input to `http.request` is not string or `Request` · Issue #4245 · angular/angular · GitHub
Open Graph Title: fix(http): should throw an exception if input to `http.request` is not string or `Request` · Issue #4245 · angular/angular
X Title: fix(http): should throw an exception if input to `http.request` is not string or `Request` · Issue #4245 · angular/angular
Description: I forgot to import Request in an example where I instantiate Request manually, which meant I was instantiating the global Request object instead of Request provided by angular2/http. When passing this to Http.prototype.request, the input...
Open Graph Description: I forgot to import Request in an example where I instantiate Request manually, which meant I was instantiating the global Request object instead of Request provided by angular2/http. When passing t...
X Description: I forgot to import Request in an example where I instantiate Request manually, which meant I was instantiating the global Request object instead of Request provided by angular2/http. When passing t...
Opengraph URL: https://github.com/angular/angular/issues/4245
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(http): should throw an exception if input to `http.request` is not string or `Request`","articleBody":"I forgot to import `Request` in an example where I instantiate `Request` manually, which meant I was instantiating the global `Request` object instead of `Request` provided by `angular2/http`. When passing this to `Http.prototype.request`, the input didn't match the string or `instanceof Request` check, so the method was returning `undefined. Instead, an exception should be raised.\n","author":{"url":"https://github.com/jeffbcross","@type":"Person","name":"jeffbcross"},"datePublished":"2015-09-17T23:57:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/4245/angular/issues/4245"}
| 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:5c3f8623-d583-becb-a1c7-f116c9f4216a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC66:277ED1:82819A9:AF8EB08:6A5E38BB |
| html-safe-nonce | 67ee20deea6ecddb04d82e1439e0a47b9101e0081c0930512ab01194c3939293 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzY2OjI3N0VEMTo4MjgxOUE5OkFGOEVCMDg6NkE1RTM4QkIiLCJ2aXNpdG9yX2lkIjoiODMxMjc5MTMxMDYzNTI1MTg5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cccc7d24ef4ea820f9cca78587b8bf2ae2b49ac54517c5a1766a31916257f9bb |
| hovercard-subject-tag | issue:107103754 |
| 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/4245/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8aedf690623cdd48d992eea9cefdebcae4f011ca6107cf1ce1afa9390e3b504/angular/angular/issues/4245 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8aedf690623cdd48d992eea9cefdebcae4f011ca6107cf1ce1afa9390e3b504/angular/angular/issues/4245 |
| og:image:alt | I forgot to import Request in an example where I instantiate Request manually, which meant I was instantiating the global Request object instead of Request provided by angular2/http. When passing t... |
| 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 | e4b946991e2bd4b122ac7bb3d405be22af15feed82daaafcd1fe0a1231d54061 |
| 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 | a421a3a9fbeebe1ed5ba7c8e5b803b098d65a30e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width