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

Add case for empty set-cookie header list #1182

Merged
merged 1 commit into from
Jul 7, 2024
Merged

Conversation

JBlaschke
Copy link
Contributor

I am encountering a ERROR: LoadError: BoundsError: attempt to access 0-element Vector{SubString{String}} at index [1] error when making calls to the acuitischeduling.com API.

It seems that headers(h, "Set-Cookie") can return an list of empty lists. This is a dirty workaround -- a HTTP.jl developer might find a better solution.

Copy link
Member

@quinnj quinnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a decent fix to me

@quinnj quinnj merged commit 1b4f829 into JuliaWeb:master Jul 7, 2024
10 checks passed
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.

2 participants