Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
2.2 includes formData
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Dec 6, 2019
1 parent c73cfc9 commit 8319c18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function req(method, params) {
var url = params.url,
headers = params.headers,
body = params.body,
formData = params.formData,
auth = params.auth,
query = params.query,
rest = params.rest;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "language-http",
"version": "2.2.1",
"version": "2.2.2",
"description": "An HTTP request language package for use with Open Function",
"main": "lib/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function rawRequest(params) {
}

export function req(method, params) {
const { url, headers, body, auth, query, rest } = params;
const { url, headers, body, formData, auth, query, rest } = params;
return new Promise((resolve, reject) => {
const j = request.jar();
request(
Expand All @@ -29,7 +29,7 @@ export function req(method, params) {
qs: query,
method: method,
json: body,
formData: formData,
formData,
jar: j,
...rest,
},
Expand Down

0 comments on commit 8319c18

Please sign in to comment.