Merge pull request #741 from lightpanda-io/2xx_status

Allow any 2xx status code for scripts
This commit is contained in:
Karl Seguin
2025-06-02 19:20:59 +08:00
committed by GitHub

View File

@@ -470,7 +470,7 @@ pub const Page = struct {
var header = response.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;
}