Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
} from "./types.ts";

const payloadMethods = new Set(
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
Object.freeze(["PATCH", "POST", "PUT", "DELETE", "QUERY"])
Comment thread
coderabbitai[bot] marked this conversation as resolved.
);
Comment thread
jonty-comp marked this conversation as resolved.
export function isPayloadMethod(method = "GET"): boolean {
return payloadMethods.has(method.toUpperCase());
Comment thread
jonty-comp marked this conversation as resolved.
Expand Down