sync-request-curl
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -38,3 +38,3 @@ "use strict"; | ||
curl.setOpt(node_libcurl_1.Curl.option.FOLLOWLOCATION, options.followRedirects === undefined || options.followRedirects); | ||
curl.setOpt(node_libcurl_1.Curl.option.MAXREDIRS, options.maxRedirects || Number.MAX_SAFE_INTEGER); | ||
curl.setOpt(node_libcurl_1.Curl.option.MAXREDIRS, options.maxRedirects || -1); | ||
curl.setOpt(node_libcurl_1.Curl.option.SSL_VERIFYPEER, !options.insecure); | ||
@@ -41,0 +41,0 @@ // Query string parameters |
@@ -36,3 +36,3 @@ import { Curl, Easy } from 'node-libcurl'; | ||
curl.setOpt(Curl.option.FOLLOWLOCATION, options.followRedirects === undefined || options.followRedirects); | ||
curl.setOpt(Curl.option.MAXREDIRS, options.maxRedirects || Number.MAX_SAFE_INTEGER); | ||
curl.setOpt(Curl.option.MAXREDIRS, options.maxRedirects || -1); | ||
curl.setOpt(Curl.option.SSL_VERIFYPEER, !options.insecure); | ||
@@ -39,0 +39,0 @@ // Query string parameters |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"files": [ | ||
@@ -10,0 +10,0 @@ "dist" |
@@ -196,3 +196,3 @@ # sync-request-curl | ||
<td><pre>2000</pre></td> | ||
<td><code>0</code><br/>(never times out)</td> | ||
<td><code>0</code><br/>(no timeout)</td> | ||
</tr> | ||
@@ -202,3 +202,3 @@ <tr> | ||
<td> | ||
Whether redirects (status code 302) should be followed automatically | ||
Sets whether redirects (status code 302) should be followed automatically | ||
</td> | ||
@@ -212,3 +212,3 @@ <td><pre>false</pre></td> | ||
<td><pre>3</pre></td> | ||
<td><code>Number.MAX_SAFE_INTEGER</code></td> | ||
<td><code>-1</code><br/>(no limit)</td> | ||
</tr> | ||
@@ -215,0 +215,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40155