mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-22 18:22:35 +00:00
This commit is contained in:
parent
b661ba7ddf
commit
7c27ceaab7
@ -48,4 +48,3 @@
|
|||||||
<button mat-button (click)="onAddClick()" tabindex="2" mat-raised-button color="primary">Add</button>
|
<button mat-button (click)="onAddClick()" tabindex="2" mat-raised-button color="primary">Add</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -177,7 +177,11 @@ export class HttpServer {
|
|||||||
|
|
||||||
private getOptionsForServer<T extends HeadersOptions>(server: Server, url: string, options: T) {
|
private getOptionsForServer<T extends HeadersOptions>(server: Server, url: string, options: T) {
|
||||||
if (server.host && server.port) {
|
if (server.host && server.port) {
|
||||||
url = `http://${server.host}:${server.port}/v2${url}`;
|
if (server.authorization === 'basic') {
|
||||||
|
url = `https://${server.host}:${server.port}/v2${url}`;
|
||||||
|
} else {
|
||||||
|
url = `http://${server.host}:${server.port}/v2${url}`;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
url = `/v2${url}`;
|
url = `/v2${url}`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user