From e90d4a01b17dba1e1bde177423acd4686319f3c9 Mon Sep 17 00:00:00 2001 From: Evan Richard <5766842+EvanJRichard@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:10:10 -0400 Subject: [PATCH] Update httpAdapter: no requirement that a caller use POST (#3669) Review: https://github.com/iron-fish/ironfish/pull/3669 --- ironfish/src/rpc/adapters/httpAdapter.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ironfish/src/rpc/adapters/httpAdapter.ts b/ironfish/src/rpc/adapters/httpAdapter.ts index ee096582a2..c26f3a89a0 100644 --- a/ironfish/src/rpc/adapters/httpAdapter.ts +++ b/ironfish/src/rpc/adapters/httpAdapter.ts @@ -170,14 +170,6 @@ export class RpcHttpAdapter implements IRpcAdapter { const url = new URL(request.url, `http://${request.headers.host || 'localhost'}`) const route = url.pathname.substring(1) - if (request.method !== 'POST') { - throw new ResponseError( - `Route does not exist, Did you mean to use POST?`, - ERROR_CODES.ROUTE_NOT_FOUND, - 404, - ) - } - // TODO(daniel): clean up reading body code here a bit of possible let size = 0 const data: Buffer[] = []