X Tutup
Skip to content

fix(http): should throw an exception if input to http.request is not string or Request #4245

@jeffbcross

Description

@jeffbcross

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup