You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTTP API has a few endpoints that return newline-delimited JSON which is used to stream responses to the client.
One such API is pubsub/sub. The problem here is that the data is sent as an ASCII-encoded string with no escaping so can include the newline character code which our HTTP client then interprets (not unreasonably) as ending the current line.
The btfs multibase commands can solve this problem by encoding/decoding the content.
The docs about this BTIP is in: BTIP-35
The text was updated successfully, but these errors were encountered:
Shawn-Huang-Tron
changed the title
[feature][BTIP-30]: Provide a series of tool command to encode/decode the content
[feature][BTIP-35]: Provide a series of tool command to encode/decode the content
Jul 21, 2023
The HTTP API has a few endpoints that return newline-delimited JSON which is used to stream responses to the client.
One such API is
pubsub/sub
. The problem here is that the data is sent as an ASCII-encoded string with no escaping so can include the newline character code which our HTTP client then interprets (not unreasonably) as ending the current line.The
btfs multibase
commands can solve this problem by encoding/decoding the content.The docs about this BTIP is in: BTIP-35
The text was updated successfully, but these errors were encountered: