Skip to content

Commit

Permalink
needle parse: false
Browse files Browse the repository at this point in the history
  • Loading branch information
garrylachman committed Jul 12, 2017
1 parent 117078f commit 18210d2
Show file tree
Hide file tree
Showing 2 changed files with 565 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nat-upnp/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = class Device {
callback(err, body);
}

needle.get(url, (err, res, body) => {
needle.get(url, { parse: false }, (err, res, body) => {
if (err) return callback(err);

if (res.statusCode !== 200) {
Expand Down Expand Up @@ -124,6 +124,7 @@ module.exports = class Device {
'</s:Envelope>';

const needleOptions = {
parse: false,
headers: {
'Content-Type': 'text/xml; charset="utf-8"',
'Content-Length': Buffer.byteLength(body),
Expand Down
Loading

0 comments on commit 18210d2

Please # to comment.