Skip to content

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Dec 13, 2024

Motivation

The echo_http_server_post has different behavior between AWS and LocalStack (where it will direct the request against https://httpbin.org/post in AWS and a local http server in LocalStack, but at this url: http://localhost:<port>//post).

This PR fixes the format for them to both return the /post path.

I'll run a downstream test on this to verify everything is right.

Changes

  • don't add a slash when there's already one returned by http server.url_for("/").

@bentsku bentsku added aws:apigateway Amazon API Gateway semver: patch Non-breaking changes which can be included in patch releases labels Dec 13, 2024
@bentsku bentsku requested a review from alexrashed December 13, 2024 10:32
@bentsku bentsku self-assigned this Dec 13, 2024
Copy link

LocalStack Community integration with Pro

    2 files      2 suites   1h 53m 12s ⏱️
3 893 tests 3 583 ✅ 310 💤 0 ❌
3 895 runs  3 583 ✅ 312 💤 0 ❌

Results for commit e51023b.

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Thanks a lot for jumping on this! 🦸🏽 💯

@bentsku bentsku merged commit 9f28c06 into master Dec 13, 2024
36 checks passed
@bentsku bentsku deleted the fix-echo-http-double-slash branch December 13, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:apigateway Amazon API Gateway semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants