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

Commit

Permalink
Merge pull request #143 from volvofixthis/master
Browse files Browse the repository at this point in the history
Fixed data for multipart/form-data
  • Loading branch information
eykrehbein authored Jul 6, 2019
2 parents 112c00e + 4f04395 commit 862639d
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 862639d

Please sign in to comment.