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

Pistache not support absolute URI with HTTP/1.1 protocol #1144

Open
wufanqqfsc opened this issue Jul 6, 2023 · 0 comments
Open

Pistache not support absolute URI with HTTP/1.1 protocol #1144

wufanqqfsc opened this issue Jul 6, 2023 · 0 comments

Comments

@wufanqqfsc
Copy link

According to HTTP/1.1: Request (w3.org)

"The absoluteURI form is REQUIRED when the request is being made to a proxy."
...
"all HTTP/1.1 servers MUST accept the absolute URI form in requests, even though HTTP/1.1 clients will only generate them in requests to proxies."

But seems Pistache just can handler the relative path and not support the absolute URI.

Just like the curl http request CMD:

curl -X PATCH http://127.0.0.1:8080/ -v --request-target http://127.0.0.1:8080/xxx --path-as-is -H "Host: 127.0.0.1:8080" -H "Content-Type:"

And Pistache will can't find the route path for this URI: "http://127.0.0.1:8080/xxx" and using the default handler.

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

No branches or pull requests

1 participant