Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ export class GoffApiController {
}

public async configurationHasChanged(): Promise<ConfigurationChange> {
const url = `${this.endpoint}v1/flag/change`;
const endpointURL = new URL(this.endpoint);
endpointURL.pathname = 'v1/flag/change';

const headers: any = {
'Content-Type': 'application/json',
Expand All @@ -193,7 +194,7 @@ export class GoffApiController {
headers['If-None-Match'] = this.etag;
}
try {
const response = await axios.get(url, { headers });
const response = await axios.get(endpointURL.toString(), { headers });
if (response.status === 304) {
return ConfigurationChange.FLAG_CONFIGURATION_NOT_CHANGED;
}
Expand Down