-
Notifications
You must be signed in to change notification settings - Fork 28
Fix form body stringification #32
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
Conversation
We have to do it this way because URLSearchParams, which is what we get, converts everything to strings. That's why we do the string comparisons, rather than comparing with null or undefined or using typeof.
test/DefaultRESTClientTest.ts
Outdated
| @@ -0,0 +1,95 @@ | |||
| /* | |||
| * Copyright (c) 2019, FusionAuth, All Rights Reserved | |||
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.
2020
| @@ -1,5 +1,5 @@ | |||
| /* | |||
| * Copyright (c) 2019, FusionAuth, All Rights Reserved | |||
| * Copyright (c) 2020, FusionAuth, All Rights Reserved | |||
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.
We normally preserve the first year, and append to it. 2019-2020 for example. No need to change necessary, but for future reference.
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.
ok, thanks!
|
going to merge this tomorrow @robotdan :) |
Added tests for DefaultRESTClient logic.
Also changes to address #26