mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-15 15:58:57 +00:00
Merge pull request #741 from lightpanda-io/2xx_status
Allow any 2xx status code for scripts
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