Skip to content

Commit

Permalink
Update httpAdapter: no requirement that a caller use POST (#3669)
Browse files Browse the repository at this point in the history
Review: #3669
  • Loading branch information
EvanJRichard authored Mar 23, 2023
1 parent 3bd9758 commit e90d4a0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ironfish/src/rpc/adapters/httpAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []
Expand Down

0 comments on commit e90d4a0

Please sign in to comment.