xshell 1.0.57 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/net.js +1 -1
- package/package.json +1 -1
package/net.js
CHANGED
|
@@ -158,7 +158,7 @@ export async function request(url, { method, queries, headers: _headers, body, t
|
|
|
158
158
|
let response;
|
|
159
159
|
try {
|
|
160
160
|
response = await fetch_retry(url, options, timeout, retries);
|
|
161
|
-
if (!response.ok)
|
|
161
|
+
if (!(response.ok || (redirect === 'manual' && 300 <= response.status && response.status < 400)))
|
|
162
162
|
throw Object.assign(new Error(t('状态码 {{status}} 非 2xx', { status: response.status })), { name: 'StatusCodeError' });
|
|
163
163
|
}
|
|
164
164
|
catch (error) {
|