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 url field to Response #97

Merged
merged 3 commits into from
Jan 16, 2023
Merged

Add url field to Response #97

merged 3 commits into from
Jan 16, 2023

Conversation

its5Q
Copy link
Contributor

@its5Q its5Q commented Jan 16, 2023

By default, puppy follows redirects, but has no way to know the final URL. This PR adds url field to Response object, allowing to get the final URL after redirects.
New redirect test passes on:

  • Windows with WinHTTP
  • Linux with libcurl
  • MacOS with AppKit & libcurl

I couldn't test on Windows with libcurl, but I'm assuming it should work too.
Addresses #96

@treeform treeform merged commit 0115db0 into treeform:master Jan 16, 2023
@treeform
Copy link
Owner

Wow looks really good! You got all platforms and tests. We do think having URL that redirects is important.

Thank you for the PR!

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