Closed eightfourseventwo closed 1 month ago
We have a service which mocks responses from several exchanges at http://mocks/kucoin etc. Because the URI was hardcoded with a / prefix, Guzzle would always request http://mocks/api/v1/accounts instead of http://mocks/kucoin/api/v1/accounts, even with the base URL set to https://mocks/kucoin.
/
This PR allows setting the base URL to an url with a path
Breaking Change
We have a service which mocks responses from several exchanges at http://mocks/kucoin etc. Because the URI was hardcoded with a
/
prefix, Guzzle would always request http://mocks/api/v1/accounts instead of http://mocks/kucoin/api/v1/accounts, even with the base URL set to https://mocks/kucoin.This PR allows setting the base URL to an url with a path