xshell 1.0.100 → 1.0.101
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
|
@@ -198,7 +198,7 @@ export async function request(url, options = {}) {
|
|
|
198
198
|
headers,
|
|
199
199
|
body
|
|
200
200
|
};
|
|
201
|
-
if (!((200 <= status && status <= 299) || (redirect === 'manual' && 300 <= status && status < 400)))
|
|
201
|
+
if (!((200 <= status && status <= 299) || status === 304 || (redirect === 'manual' && 300 <= status && status < 400)))
|
|
202
202
|
throw Object.assign(new Error(t('状态码 {{status}}, 非 2xx: {{url}}', { status: response.status, url })), { name: 'StatusCodeError' });
|
|
203
203
|
}
|
|
204
204
|
catch (error) {
|