Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Fixed data for multipart/form-data
Browse files Browse the repository at this point in the history
  • Loading branch information
volvofixthis committed Jul 6, 2019
1 parent 112c00e commit 4f04395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import * as Ajv from 'ajv';
import * as nunjucksDate from 'nunjucks-date';
import * as fs from 'fs';
import * as FormData from 'form-data';
import { URLSearchParams } from 'url';

var deepEql = require("deep-eql");
var lineNumber = require('line-number');
Expand Down Expand Up @@ -431,7 +432,7 @@ const performRequest = async (requestObject: requestsObjectSchema, requestName:
form.append(item.name, item.value);
}
});
axiosObject.data = form;
axiosObject.data = form.getBuffer();
axiosObject.headers = {...axiosObject.headers,...form.getHeaders()};
}
}
Expand Down

0 comments on commit 4f04395

Please sign in to comment.