Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 0e4111e

Browse files
Eric Andrewstimoxley
authored andcommitted
small fix to publishHttp
1 parent ace88cf commit 0e4111e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rest/StreamEndpoints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export async function publishHttp(streamObjectOrId, data, requestOptions = {}, k
187187

188188
// Send data to the stream
189189
return authFetch(
190-
`${this.options.restUrl}/streams/${streamId}/data`,
190+
`${this.options.restUrl}/streams/${encodeURIComponent(streamId)}/data`,
191191
this.session,
192192
{
193193
...requestOptions,

0 commit comments

Comments
 (0)