paritytech / jsonrpsee

Rust JSON-RPC library on top of async/await
MIT License
648 stars 172 forks source link

chore: change transport::http::response::method_not_allowed message #1452

Closed dcfreire closed 2 months ago

dcfreire commented 2 months ago

1451

jsdw commented 2 months ago

I thougght options might be in the error for CORS but that's just middleware now anyway right?

niklasad1 commented 2 months ago

I thougght options might be in the error for CORS but that's just middleware now anyway right?

Yes, correct

niklasad1 commented 2 months ago

The function is only used https://github.com/paritytech/jsonrpsee/blob/master/server/src/transport/http.rs#L84-#L109 and this changed error message is "more accurate"