@comunica/actor-http-native
Advanced tools
Comparing version 1.14.0 to 1.15.0
@@ -49,2 +49,5 @@ "use strict"; | ||
options.method = options.method || 'GET'; | ||
if (action.context && action.context.get(bus_http_1.KEY_CONTEXT_INCLUDE_CREDENTIALS)) { | ||
options.withCredentials = true; | ||
} | ||
this.logInfo(action.context, `Requesting ${options.url}`); | ||
@@ -51,0 +54,0 @@ // Not all options are supported |
@@ -29,2 +29,3 @@ "use strict"; | ||
request.timeout = settings.timeout; | ||
request.withCredentials = settings.withCredentials; | ||
for (const header of reqHeaders) { | ||
@@ -31,0 +32,0 @@ if (!(header[0] in UNSAFE_REQUEST_HEADERS) && header[1]) { |
{ | ||
"name": "@comunica/actor-http-native", | ||
"version": "1.14.0", | ||
"version": "1.15.0", | ||
"description": "A native http actor", | ||
@@ -48,5 +48,5 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-native", | ||
"devDependencies": { | ||
"@comunica/bus-http": "^1.14.0", | ||
"@comunica/core": "^1.14.0", | ||
"@comunica/mediatortype-time": "^1.14.0" | ||
"@comunica/bus-http": "^1.15.0", | ||
"@comunica/core": "^1.15.0", | ||
"@comunica/mediatortype-time": "^1.15.0" | ||
}, | ||
@@ -78,3 +78,3 @@ "jest": { | ||
}, | ||
"gitHead": "6517367d95ef072468bfc0d88cf3a27f6d25a145" | ||
"gitHead": "d71011b99f9fb5d125822fd42e75db6868ef4a64" | ||
} |
18447
294