Skip to content

fix(torii): use GET for blocks stream#4990

Merged
nxsaken merged 1 commit intohyperledger-iroha:mainfrom
0x009922:fix/torii-ws-method
Aug 21, 2024
Merged

fix(torii): use GET for blocks stream#4990
nxsaken merged 1 commit intohyperledger-iroha:mainfrom
0x009922:fix/torii-ws-method

Conversation

@0x009922
Copy link
Copy Markdown
Contributor

Context

Blocks stream endpoint doesn't work with standard WebSocket clients because it uses POST. The standard says it should be GET: https://stackoverflow.com/questions/50386211/should-websocket-server-only-handle-get-requests

Solution

Use GET for blocks stream route.

Events stream already uses GET (discrepancy btw).

Checklist

  • I've read CONTRIBUTING.md.
  • (optional) I've written unit tests for the code changes.
  • All review comments have been resolved.

Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
@0x009922 0x009922 added Bug Something isn't working Chore This is a small task that can be done at any point in time and is easier than others labels Aug 21, 2024
@0x009922 0x009922 self-assigned this Aug 21, 2024
@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Aug 21, 2024
@nxsaken nxsaken merged commit 2810e1b into hyperledger-iroha:main Aug 21, 2024
mversic pushed a commit that referenced this pull request Aug 30, 2024
Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-changes Changes in the API for client libraries Bug Something isn't working Chore This is a small task that can be done at any point in time and is easier than others

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants