mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 10:15:10 +00:00
Use res.ok
instead of 200-299
This commit is contained in:
parent
6ea48be84a
commit
b667a68bd4
1 changed files with 1 additions and 2 deletions
|
@ -208,8 +208,7 @@ export class ApRequestService {
|
||||||
const contentType = res.headers.get('content-type');
|
const contentType = res.headers.get('content-type');
|
||||||
|
|
||||||
if (
|
if (
|
||||||
res.status >= 200
|
res.ok
|
||||||
&& res.status <= 299
|
|
||||||
&& (contentType ?? '').split(';')[0].trimEnd().toLowerCase() === 'text/html'
|
&& (contentType ?? '').split(';')[0].trimEnd().toLowerCase() === 'text/html'
|
||||||
&& _followAlternate === true
|
&& _followAlternate === true
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue