mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
handle redirects on synchronous calls
This commit is contained in:
@@ -510,7 +510,7 @@ pub const XMLHttpRequest = struct {
|
||||
try request.sendAsync(loop, self, .{});
|
||||
}
|
||||
|
||||
pub fn onHttpResponse(self: *XMLHttpRequest, progress_: http.Error!http.Progress) !void {
|
||||
pub fn onHttpResponse(self: *XMLHttpRequest, progress_: http.AsyncError!http.Progress) !void {
|
||||
const progress = progress_ catch |err| {
|
||||
self.onErr(err);
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user