Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling a service with no return body do not executes end() #82

Open
pjmolina opened this issue Jan 25, 2016 · 1 comment
Open

Calling a service with no return body do not executes end() #82

pjmolina opened this issue Jan 25, 2016 · 1 comment

Comments

@pjmolina
Copy link

Hi. Given an API for deleting objects, it returns 202 Accepted and no content in the body.

When using unirest for calling it this way:

 unirest
        .post("/deleteByIds")
        .headers({
            "Content-Type": "application/json"
        })
        .send(ids)
        .end(function (res) {
            //code handling - never called
        });  
} 

The end() function is never called back, however the service has already responded 202 with no body. Tested using unirest-nodejs version 0.4.2.

Could this be related to PR #74 ?

@nijikokun
Copy link
Contributor

Could be, will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants