chlid-proxy
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -81,7 +81,7 @@ const axios = require('axios'); | ||
// Worker thread logic | ||
const { index, url, method = 'GET', include = [], headers: requestHeaders = {}, body: requestBody, params, userAgent} = workerData; | ||
const { index, url, method = 'GET', include = [], headers: requestHeaders = {}, body: requestBody, params } = workerData; | ||
const requestOptions = { | ||
method, | ||
headers: { ...requestHeaders, userAgent }, | ||
headers: { ...requestHeaders }, | ||
data: JSON.stringify(requestBody), | ||
@@ -123,3 +123,3 @@ params, | ||
'response-error-data': (include.includes('response-error-data') && error.response.data.errors), | ||
'--user-agent': (include.includes('--user-agent') && userAgent) | ||
'--user-agent': (include.includes('--user-agent') && null) | ||
}); | ||
@@ -126,0 +126,0 @@ } |
{ | ||
"name": "chlid-proxy", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Private Package", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7029