Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

okonech
Copy link

@okonech okonech commented Jul 9, 2020

{} 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.

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

Successfully merging this pull request may close these issues.

1 participant