Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "castor", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "An ES7 [CAS designed](https://en.wikipedia.org/wiki/Content-addressable_storage) file storage for nodejs with a simple API and robust implementation.", | ||
@@ -5,0 +5,0 @@ "main": "store.js", |
@@ -147,3 +147,5 @@ 'use strict'; | ||
try { | ||
file_url = url.parse(file_url); | ||
if(typeof file_url == 'string') | ||
file_url = url.parse(file_url); | ||
file_url.headers = {...file_url.headers}; | ||
@@ -150,0 +152,0 @@ file_url.followRedirect = true; |
13673
243