File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/LaunchDarkly/Impl/Integrations Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2121 */
2222class GuzzleFeatureRequester implements FeatureRequester
2323{
24- const SDK_FLAGS = "/ sdk/flags " ;
25- const SDK_SEGMENTS = "/ sdk/segments " ;
24+ const SDK_FLAGS = "sdk/flags " ;
25+ const SDK_SEGMENTS = "sdk/segments " ;
2626 /** @var Client */
2727 private $ _client ;
2828 /** @var LoggerInterface */
@@ -32,6 +32,10 @@ class GuzzleFeatureRequester implements FeatureRequester
3232
3333 public function __construct (string $ baseUri , string $ sdkKey , array $ options )
3434 {
35+ if (substr ($ baseUri , strlen ($ baseUri ) - 1 , 1 ) != '/ ' ) {
36+ $ baseUri .= '/ ' ; // ensures that subpaths are concatenated correctly
37+ }
38+
3539 $ this ->_logger = $ options ['logger ' ];
3640 $ stack = HandlerStack::create ();
3741 if (class_exists ('\Kevinrob\GuzzleCache\CacheMiddleware ' )) {
You can’t perform that action at this time.
0 commit comments