diff --git a/src/xhr/xhr.zig b/src/xhr/xhr.zig index 7398360e..2ad43027 100644 --- a/src/xhr/xhr.zig +++ b/src/xhr/xhr.zig @@ -467,6 +467,11 @@ pub const XMLHttpRequest = struct { } } + // TODO retrieve the redirected url + pub fn get_responseURL(self: *XMLHttpRequest) ?[]const u8 { + return self.url; + } + pub fn get_responseXML(self: *XMLHttpRequest, alloc: std.mem.Allocator) !?Response { if (self.response_type != .Empty and self.response_type != .Document) { return DOMError.InvalidState;