Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

0x009922
Copy link
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
10 of 12 checks passed
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