-
Notifications
You must be signed in to change notification settings - Fork 680
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
Keep track of path when parsing route URL #492
Comments
i'd definitely accept a PR addressing this |
alternatively, could you use |
If it seems useful to the community I can try. However, I'm really new to Go and it could take time before I write decent code ;-) |
@michaelshobbs Do you mean add the path as a query parameter and get it back as an option in the route? |
Apologies it's been awhile since I've been in this codebase. I assumed you already had a way to get the path into the system and we were just dropping it. Is that true? |
I am not sure to get you but what I would like to be able to do is for instance:
But in my adapter when I'd like to get back the route info I can't get the path back:
Maybe I am wrong but it appears to me neither the type to the parsing take care of it. Maybe as you suggest there is another way to get the path back as well. |
that is correct. however it does exist in the variable Line 91 in 4e88b84
golang net/url docs: https://golang.org/pkg/net/url/#URL So we could store |
I think that adding a new field is more in line with the existing base. |
When parsing the route URL here the path is not kept while it could be useful for some adapters.
For instance, we've developed https://github.com/kalisio/logspout-slack and we need to provide the path part of the webhook (
of the form https://hooks.slack.com/services/xxx) as a configuration option.
The text was updated successfully, but these errors were encountered: