diff --git a/src/lib.zig b/src/lib.zig index de0314dc6df429574b5c6bddd2bfa7e24e2393cb..7733504ed8eb16329f8249ca47ffd5e7bd9f13a2 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -232,7 +232,7 @@ pub fn Handlers(comptime T: type) type { _ = args; const alloc = request.arena; - const query = try request.context.url.queryParameters(alloc); + const query = try request.context.uri.queryParameters(alloc); if (query.get("with")) |with| { const client = clientByProviderId(Self.clients, with) orelse return try fail(response, "Client with that ID not found!\n", .{}); @@ -255,7 +255,7 @@ pub fn Handlers(comptime T: type) type { _ = args; const alloc = request.arena; - const query = try request.context.url.queryParameters(alloc); + const query = try request.context.uri.queryParameters(alloc); const state = query.get("state") orelse return try fail(response, "", .{}); const client = clientByProviderId(Self.clients, state) orelse return try fail(response, "error: No handler found for provider: {s}\n", .{state});