You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using urllib url joining, this truncates server urls paths when combining /messages/ set in the transport object.
sse=SseServerTransport("/messages/")
For example, if joining http://localhost:8000/some/path/to/sse with /messages/, it will output: http://localhost:8000/messages/ instead of honoring the path.
Removing the leading slash fixes this.
This was found in the situation where my server was being proxied and accessed at a subpath. afaict, there is no explicit reason to keep the leading slash. This is also something that could be addressed in #194 since a dev could then customize the server setup more easily.
Expected behavior
A clear and concise description of what you expected to happen.
I would expect this to join the route to the end of the url instead of truncating it.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using urllib url joining, this truncates server urls paths when combining
/messages/
set in the transport object.For example, if joining
http://localhost:8000/some/path/to/sse
with/messages/
, it will output:http://localhost:8000/messages/
instead of honoring the path.Removing the leading slash fixes this.
This was found in the situation where my server was being proxied and accessed at a subpath. afaict, there is no explicit reason to keep the leading slash. This is also something that could be addressed in #194 since a dev could then customize the server setup more easily.
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
I would expect this to join the route to the end of the url instead of truncating it.
The text was updated successfully, but these errors were encountered: