authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-02-01 03:30:08 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-02-01 03:30:08 -08:00
loga35aa9962c426fb56c3135a5c9c6e385f94af222
treed15da77d9101068338d1dcfebf7f9d6679c0d8bd
parent866164b750389de7c0e71dfc6bae1c50a079945a

update to latest apple_pie


1 files changed, 2 insertions(+), 2 deletions(-)

src/lib.zig+2-2
...@@ -232,7 +232,7 @@ pub fn Handlers(comptime T: type) type {...@@ -232,7 +232,7 @@ pub fn Handlers(comptime T: type) type {
232 _ = args;232 _ = args;
233233
234 const alloc = request.arena;234 const alloc = request.arena;
235 const query = try request.context.url.queryParameters(alloc);235 const query = try request.context.uri.queryParameters(alloc);
236236
237 if (query.get("with")) |with| {237 if (query.get("with")) |with| {
238 const client = clientByProviderId(Self.clients, with) orelse return try fail(response, "Client with that ID not found!\n", .{});238 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 {...@@ -255,7 +255,7 @@ pub fn Handlers(comptime T: type) type {
255 _ = args;255 _ = args;
256256
257 const alloc = request.arena;257 const alloc = request.arena;
258 const query = try request.context.url.queryParameters(alloc);258 const query = try request.context.uri.queryParameters(alloc);
259259
260 const state = query.get("state") orelse return try fail(response, "", .{});260 const state = query.get("state") orelse return try fail(response, "", .{});
261 const client = clientByProviderId(Self.clients, state) orelse return try fail(response, "error: No handler found for provider: {s}\n", .{state});261 const client = clientByProviderId(Self.clients, state) orelse return try fail(response, "error: No handler found for provider: {s}\n", .{state});