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

Less hacky fix for /%2F bug #806

Merged
merged 1 commit into from
Jan 14, 2016
Merged

Less hacky fix for /%2F bug #806

merged 1 commit into from
Jan 14, 2016

Conversation

tomwilkie
Copy link
Contributor

Fixes #804

}
topologyID := rm.Vars["topology"]
nodeID := rm.Vars["id"]
if nodeID == "ws" {

This comment was marked as abuse.

@paulbellamy
Copy link
Contributor

ugly, but can't think of a better way to do it.

@tomwilkie
Copy link
Contributor Author

I think this is beyond even my ugliness threshold. @peterbourgon have any suggestions? Otherwise I'll take another stab as bashing it into shape.

@tomwilkie tomwilkie force-pushed the 804-f-star-cking-slashes branch from 505f39e to d8b3b3a Compare January 14, 2016 14:34
@tomwilkie tomwilkie changed the title Hacky fix for /%2F bug Less hacky fix for /%2F bug Jan 14, 2016
@tomwilkie
Copy link
Contributor Author

Won't we still have the same bug for websockets, then?

None of the topology view name start with (or contain) a slash, so we won't have this bug.

Don't like that this is in 2 places.

Have updated and rejigged this a little so its less ugly. Also added a test. @paulbellamy PTAL.

@tomwilkie tomwilkie force-pushed the 804-f-star-cking-slashes branch from d8b3b3a to 123c400 Compare January 14, 2016 15:10
paulbellamy added a commit that referenced this pull request Jan 14, 2016
@paulbellamy paulbellamy merged commit 43b430f into master Jan 14, 2016
@paulbellamy paulbellamy deleted the 804-f-star-cking-slashes branch January 14, 2016 15:45
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.

2 participants