Skip to content

Unirest is running asynchronously #139

Description

@grizzlyfute

Hello,

I have noticed that unirest 0.6.0 is running asynchronously.
The code reproducing is

unirest
  .post ("http://localhost/serverurl")
  .headers ({ 'Content-Type': 'application/x-www-form-urlencoded;' })
  .end ((x) => console.log("OK " + JSON.stringify(x)));
console.log("End");

The excepted output is

OK { json data }
End

But got

End 
OK { json data }

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions