Skip to content

can't reply with stream returned by node core http client methods #2301

@nlf

Description

@nlf

For example

server.route({
  method: 'GET',
  path: '/',
  handler: function (request, reply) {
    reply(Http.get('http://google.com'));
  }
});

Will throw TypeError: Cannot read property 'objectMode' of undefined due to the fact that the http module has _readableState hidden behind a property. This also impacts request and wreck.

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions