We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee676d8 commit ce6a8e1Copy full SHA for ce6a8e1
libs/providers/go-feature-flag/src/lib/controller/goff-api.ts
@@ -183,7 +183,8 @@ export class GoffApiController {
183
}
184
185
public async configurationHasChanged(): Promise<ConfigurationChange> {
186
- const url = `${this.endpoint}v1/flag/change`;
+ const endpointURL = new URL(this.endpoint);
187
+ endpointURL.pathname = 'v1/flag/change';
188
189
const headers: any = {
190
'Content-Type': 'application/json',
@@ -193,7 +194,7 @@ export class GoffApiController {
193
194
headers['If-None-Match'] = this.etag;
195
196
try {
- const response = await axios.get(url, { headers });
197
+ const response = await axios.get(endpointURL.toString(), { headers });
198
if (response.status === 304) {
199
return ConfigurationChange.FLAG_CONFIGURATION_NOT_CHANGED;
200
0 commit comments