-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Default body to querystring, null encoding #892
Conversation
it("should encode a JSON body", (done) => { | ||
it("should encode a JSON body by default", (done) => { | ||
|
||
let options = { |
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 need 'use strict' at the top if you want to use let.
8dec808
to
647532f
Compare
@flovilmart updated the pull request. |
Current coverage is
|
Looks good to me but since this is a fairly big API change I would prefer having a 2nd reviewer. |
@flovilmart updated the pull request. |
@@ -154,31 +156,50 @@ describe("httpRequest", () => { | |||
done(); | |||
}) | |||
}); | |||
it("should encode a JSON body", (done) => { | |||
it("should encode a JSON body by default", (done) => { |
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.
Nit: Space before.
Put few thoughts here and there, nothing very bad, but few pieces that feel weird... |
@flovilmart updated the pull request. |
2c30e38
to
66fefa5
Compare
@flovilmart updated the pull request. |
66fefa5
to
6acb5ce
Compare
@flovilmart updated the pull request. |
1 similar comment
@flovilmart updated the pull request. |
2c183f8
to
bd7d951
Compare
@flovilmart updated the pull request. |
@nlutsenko what's your thoughts on that? The default encoding will be QS, to match with original implementation of httpRequest |
Looks good, sorry took a while to review. |
this.cookies = response.headers["set-cookie"]; | ||
} | ||
|
||
get text() { |
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.
Love the lazy-loading piece here.
…ultContentType Default body to querystring, null encoding
fixes #727