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

Use ShouldBindHeader when gin framework releases the feature, it's in master but... #34

Closed
todo bot opened this issue Jul 22, 2019 · 0 comments
Closed
Assignees

Comments

@todo
Copy link

todo bot commented Jul 22, 2019

// TODO: Use ShouldBindHeader when gin framework releases the feature, it's in master but not release.
t := c.Request.Header.Get("Authorization")
if t == "" || strings.Contains(t, "Bearer") {
return "", errors.New("token missing or malformed")
}
headerSeparated := strings.Split(t, " ")


This issue was generated by todo based on a TODO comment in 6878f14. It's been assigned to @jac1013 because they committed the code.
@todo todo bot assigned jac1013 Jul 22, 2019
@todo todo bot added the todo 🗒️ label Jul 22, 2019
@jac1013 jac1013 closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant