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

refactor: Copy all values when sanitizing #454

Closed
wants to merge 0 commits into from
Closed

Conversation

mitar
Copy link
Contributor

@mitar mitar commented Jul 30, 2020

Minor improvement when looking at the code. Get returns just the first value.

Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you by chance following your fosite fork on CircleCI? In those cases, builds do not work in the upstream which is why the CI does not trigger. It would be great to have the CI results though to make sure that everything behaves correctly!

request.go Outdated
@@ -186,8 +186,8 @@ func (a *Request) Sanitize(allowedParameters []string) Requester {
b.ID = a.GetID()
b.Form = url.Values{}
for k := range a.Form {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically only the first value is set in url.Values but this is still a good merge. It would be nice though to have a test case that covers the fixed behavior to prevent regression.

@mitar
Copy link
Contributor Author

mitar commented Aug 5, 2020

Are you by chance following your fosite fork on CircleCI? In those cases, builds do not work in the upstream which is why the CI does not trigger. It would be great to have the CI results though to make sure that everything behaves correctly!

Huh, what? So strange that this matters.

In fact it does not. It seems it is about my master branch being out of date in my fork.

@mitar
Copy link
Contributor Author

mitar commented Aug 5, 2020

Anyway, trying to rebase killed my branch. I will redo this.

@mitar mitar deleted the patch-1 branch August 5, 2020 19:33
@mitar
Copy link
Contributor Author

mitar commented Aug 5, 2020

Done in #455.

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