Use res.ok instead of 200-299

This commit is contained in:
Julia Johannesen 2024-09-22 18:35:29 -04:00
parent 6ea48be84a
commit b667a68bd4
No known key found for this signature in database
GPG key ID: 4A1377AF3E7FBC46

View file

@ -208,8 +208,7 @@ export class ApRequestService {
const contentType = res.headers.get('content-type');
if (
res.status >= 200
&& res.status <= 299
res.ok
&& (contentType ?? '').split(';')[0].trimEnd().toLowerCase() === 'text/html'
&& _followAlternate === true
) {