-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
fix set remove (part 2) #414
Comments
Sorry, I just saw your previous message about 10 minutes ago in bed (it's 10pm here), and was already on it. fix coming up soon... |
no problem. Sorry, should have seen the other line in the first place. ... bloody indices, always tend to brake my brain. ;-) |
No problem. Thanks. At least I was making the same mistake in a uniform manner (or... something) |
done and done |
thanks a lot! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Me again ... :-)
So when the key to be removed is the last one in the set, the last 2 keys are removed.
This line
jwx/jwk/set.go
Line 72 in 5e2de6e
s.keys = s.keys[:i]
I propose to replace the new test func
jwx/jwk/jwk_test.go
Line 1572 in 5e2de6e
with something like this, which tests removal of first, last and center keys (which will fail with unfixed version):
The text was updated successfully, but these errors were encountered: