floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

fix: non empty body results in content-length=2 header in request, failing api calls #253

Open okonech opened 4 years ago

okonech commented 4 years ago

{} is treated as a non empty body by the request library, adding a content-length=2 header to requests that should not have a body. This results in failed JIRA requests.

An example is the project getVersions request: jira.project.getVersions({ projectIdOrKey: project }) with a given project fails due to the content-length headers being added.