Skip to content

Commit 8ea5387

Browse files
authored
Fixed parameter name
1 parent 6c35c70 commit 8ea5387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/network.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class Network {
9898
req.setHeader('Content-Length', length + (16 * (names.length - 1)) + 8 + Buffer.byteLength(boundaryKey))
9999

100100
this._sendMultipartParts(boundaryKey, body, data, names, req, 0)
101-
} else if (req_options.method == 'POST' && options.data_json) {
101+
} else if (req_options.method == 'POST' && options.jsonData) {
102102
req.setHeader('Content-Type', 'application/json')
103-
var body = JSON.stringify(options.data_json)
103+
var body = JSON.stringify(options.jsonData)
104104
req.setHeader('Content-Length', Buffer.byteLength(body))
105105
req.end(body)
106106
} else {

0 commit comments

Comments
 (0)