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

Fix URL-encoded slashes in topic names #177

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from

Conversation

EzraBrooks
Copy link

@EzraBrooks EzraBrooks commented Dec 26, 2024

Public API Changes

None?

Description

Technically, if your query parameter includes a /, it's supposed to be URL-encoded as %2F. I started using a library that makes this mandatory in my UI codebase, so web_video_server stopped working for me because it doesn't do any URL decoding - and my topics are called things like /wrist_camera/depth, thus becoming %2Fwrist_camera%2Fdepth.

A more complete solution here would be to actually decode the URL component entirely, but this unblocked me so I figured I'd open a PR just in case nobody wanted to introduce an additional library dependency to decode a URL, which I assume would be the case.

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