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.
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. |
spec/HTTPRequest.spec.js
Outdated
| }) | ||
| }); | ||
| it("should encode a JSON body", (done) => { | ||
| it("should encode a JSON body by default", (done) => { |
|
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.
Love the lazy-loading piece here.
…ultContentType Default body to querystring, null encoding
fixes #727