Skip to content
Snippets Groups Projects
Verified Commit b667a68b authored by Julia's avatar Julia
Browse files

Use `res.ok` instead of 200-299

parent 6ea48be8
No related branches found
No related tags found
No related merge requests found
......@@ -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
) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment