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

fix(curly): use default content-type when there are no headers #410

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

Conversation

liamdiprose
Copy link

@liamdiprose liamdiprose commented May 1, 2024

When using a sftp:// url, this headers variable is an empty array, which breaks the Object.entries call.

This PR adds a bounds check so the default content-type will be chosen if the headers variable is empty.

I failed to get this to work with my vite-based project, something about 'exports not defined'. It does work if I manually patch the dist/ javascript. So, I'll leave the verification to you.

Thanks,
Liam

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

Successfully merging this pull request may close these issues.

None yet

1 participant