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 Handlers.getcookies erroring #1119

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

nguiard
Copy link
Contributor

@nguiard nguiard commented Oct 10, 2023

Hi!

Presently if you do HTTP.getcookies(req), you get:
ERROR: MethodError: no method matching get(::Pair{Tuple{}, Vector{HTTP.Cookies.Cookie}}, ::Dict{Symbol, Any}, ::Symbol)

This is because the definition of getcookies contained () => Cookie[] instead of () -> Cookie[].

This PR fixes the error and proposes a basic test to verify that we can call getcookies on a request without an error.

Copy link
Collaborator

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

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

thanks!

@nickrobinson251 nickrobinson251 merged commit 5cd586d into JuliaWeb:master Oct 11, 2023
10 of 11 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