This commit is contained in:
Liyas Thomas
2019-11-27 17:04:43 +05:30
parent 36568d5720
commit 3a2284cf99

View File

@@ -47,7 +47,7 @@ const parseCurlCommand = (curlCommand) => {
} }
let headers; let headers;
let parseHeaders = (headerFieldName) => { const parseHeaders = (headerFieldName) => {
if (parsedArguments[headerFieldName]) { if (parsedArguments[headerFieldName]) {
if (!headers) { if (!headers) {
headers = {}; headers = {};
@@ -102,7 +102,7 @@ const parseCurlCommand = (curlCommand) => {
}); });
} }
if (cookieString) { if (cookieString) {
let cookieParseOptions = { const cookieParseOptions = {
decode: s => s decode: s => s
}; };
// separate out cookie headers into separate data structure // separate out cookie headers into separate data structure
@@ -172,7 +172,7 @@ const parseCurlCommand = (curlCommand) => {
}); });
urlObject.search = null; // Clean out the search/query portion. urlObject.search = null; // Clean out the search/query portion.
let request = { const request = {
url, url,
urlWithoutQuery: URL.format(urlObject) urlWithoutQuery: URL.format(urlObject)
}; };