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

Conversation

@harbu
Copy link
Contributor

@harbu harbu commented Dec 16, 2020

Escape forward slahes in streamId url parameter when using publishHttp to publish messages

@harbu harbu requested a review from teogeb December 16, 2020 17:02
@teogeb
Copy link
Contributor

teogeb commented Dec 18, 2020

If you use getEndpointUrl(this.options.restUrl, 'streams', streamId, 'data'), the method encodes the path segments automatically. We could also fix createStream to use getEndpointUrl(this.options.restUrl, 'streams') for consistency.

@timoxley timoxley force-pushed the add-encodeURIComponent-to-publish-http branch from 7c34c96 to c0b8d3e Compare February 10, 2021 15:41
@timoxley timoxley force-pushed the add-encodeURIComponent-to-publish-http branch from c0b8d3e to a675f20 Compare February 10, 2021 18:34
@timoxley timoxley merged commit 3133990 into master Feb 18, 2021
@timoxley timoxley deleted the add-encodeURIComponent-to-publish-http branch February 18, 2021 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants