Skip to content

Commit

Permalink
Change IncomingMessage.headers to EitherType
Browse files Browse the repository at this point in the history
Follow the change of API for `HttpOptions.headers` to support Array headers.

Closes #61
  • Loading branch information
JbIPS committed Mar 11, 2016
1 parent fa6628c commit fbcb80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/node/http/IncomingMessage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extern class IncomingMessage extends Readable<IncomingMessage> {
The request/response headers object.
Read only map of header names and values. Header names are lower-cased
**/
var headers(default,null):DynamicAccess<String>;
var headers(default,null):DynamicAccess<haxe.extern.EitherType<String, Array<String>>>;

/**
The request/response trailers object.
Expand Down

0 comments on commit fbcb80a

Please sign in to comment.