Closed makstech closed 1 year ago
@benjamin-tang-pusher Sorry for tagging you but this PR has been open for more than a month. Could you please check this?
@benjamin-tang-pusher I got this problem too, could you please check it soon ?
Thank you very much!
Description
Pusher
class allows settingpath
option, which later is used inPusher::channels_url_prefix
to create abase_uri
for the Guzzle client. But at the moment, it doesn't work because in the constructor, thebase_path
setting is set with a leading slash which means that the path inbase_uri
will be overwritten and unused (source).It needs to be working because otherwise, it's impossible to use with a server behind a proxy under "subdirectory".
E.g. Nginx configuration
For this to work, leading slashes from the path had to be removed in all calls to Guzzle.
CHANGELOG
path
option can be used for proxied servers under "subdirectory".base_path
's leading slash is trimmed on every call to Guzzle.