-
Notifications
You must be signed in to change notification settings - Fork 57
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
OAuth package goth does not work #26
Comments
Can you provide some code sample? My package doesn't modify req.URL so offhand I'm not sure why you would be seeing this problem. |
Thansk for the reply! I've just replaced package |
Ok, thanks. I may not be able to look into this for a week or so, but I definitely will figure out what's going on there. |
My idiocy! I can't check it right now; but I remembered the query parameter was not actually got a value in my code. I'll check & report back. |
Using this method from func registerVars(r *http.Request, vars map[string]string) {
parts, i := make([]string, len(vars)), 0
for key, value := range vars {
parts[i] = url.QueryEscape(":"+key) + "=" + url.QueryEscape(value)
i++
}
q := strings.Join(parts, "&")
if r.URL.RawQuery == "" {
r.URL.RawQuery = q
} else {
r.URL.RawQuery += "&" + q
}
} I've added missing parameters. It's that Excuse me for any inconveniences. |
Oh that's interesting. I'll add a section to the README pointing out this difference. Thanks for following up on this! |
Apparently query parameters which should be available via
req.URL.Query().Get("some-key")
get removed byhttptreemux
. Not that this is necessarily a bug, but if this is by design, one should be aware of that.The text was updated successfully, but these errors were encountered: