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
allow typ in header to be optional. #29
allow typ in header to be optional. #29
Conversation
ping @hapijs/tsc Would like to get this in so that feature requests can be worked on. Thanks as always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple documentation nits.
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
Thanks @cjihrig, pulled in the doc nits. |
Ping @hapijs/tsc for another set of eyes. There also seems to be some issues with the CI. |
Gave it the old college try. Error seems to be in the mega line in
It seems interesting to me that when breaking it out, what is happening here is that it the cert is being converted to a PEM and then back. Example code:
However, when removing the back and forth with:
I do get errors locally on 0-2 tests, each run is inconsistent. I feel if I/we can figure out what is going on there, we can perhaps remove the "flakiness" from these tests. Just thought I would give my 2¢ in case anybody wanted to dive in. |
Wasn't crazy about the solution, but it ran all 18 successfully in my local repo 5 out of 5 times. Going to let other fresh eyes take a look. I can revert what I've done here if requested. |
seems reasonable to me. I noticed this flakiness earlier but didn't get time to look into it since there was the bigger picture of getting it all moved over that took priority. Thanks for looking into this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM also
Addresses #27
typ
is optional based on https://tools.ietf.org/html/rfc7519#section-5.1