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 request target API and use it in Location handling #165

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

notroj
Copy link
Owner

@notroj notroj commented Aug 19, 2024

No description provided.

* src/ne_request.c (ne_get_request_target, get_request_target_uri):
  New functions.

* src/ne_request.h, src/neon.vers: Add API.

* test/request.c (targets): New test case.
* src/ne_request.c (ne_get_response_location): Rewrite to use target
  URI correctly determined from get_request_target_uri, fixing
  non-origin-form cases.

* test/redirect.c (redirects): Test for non-origin-form targets.
  (ne_get_response_location): Return const, cache the URI in
  req->target_uri.
  (ne_get_response_location): Update accordingly.

* test/request.c (targets): Update accordingly.
@notroj notroj merged commit 8fba58e into master Aug 19, 2024
194 checks passed
@notroj notroj deleted the add-req-target-api branch August 19, 2024 20:01
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.

1 participant