Skip to content

HTTPS requests without options generates invalid code #170

@blue112

Description

@blue112

Using this code:

js.node.Https.request(path, function(res:js.node.http.IncomingMessage) {}).end();

Generates:

js_node_Https.request(path, null ,function(res) {}).end();

The null here breaks the code and the https request is not sent. The correct code is :

js_node_Https.request(path ,function(res) {}).end();

A workaround is to use all three parameters with valid inputs:

js.node.Https.request(path, {}, function(res:js.node.http.IncomingMessage) {}).end();

Using hxnodejs with haxelib 12.1.0, and nodejs v12.18.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions