mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Allow any 2xx status code for scripts
DDG will sometimes return a 202 for its result javascript, meaning it isn't ready and the rest of the JS will then handle that case. It's weird, but there's no reason for us to abort on a 2xx code.
This commit is contained in:
@@ -470,7 +470,7 @@ pub const Page = struct {
|
|||||||
var header = response.header;
|
var header = response.header;
|
||||||
try self.session.cookie_jar.populateFromResponse(&url.uri, &header);
|
try self.session.cookie_jar.populateFromResponse(&url.uri, &header);
|
||||||
|
|
||||||
if (header.status != 200) {
|
if (header.status < 200 or header.status > 299) {
|
||||||
return error.BadStatusCode;
|
return error.BadStatusCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user