Closed MaoShizhong closed 1 month ago
@titanism anything extra I might need to fix the above?
v10.1.0 released to npm, thank you @MaoShizhong
ref: https://github.com/ladjs/superagent/releases/tag/v10.1.0
p.s. our efforts to maintain this repo are supported by @forwardemail
Because
1591 changed things to use
qs
to serialise form data. However, that change setqs.stringify
as the body serialisation function i.e. default options. The existing query serialisation usesqs.stringify
withindices: false
andstrictNullHandling: true
options (src/node/index.js
line 679).Existing documentation indicates that body serialisation with duplicated object keys should result in the same behaviour as the existing query serialisation. However,
qs.stringify
with default options results in a different outcome, as described in the issue this PR closes.This PR
Linked issue
Closes #1798
Checklist