From a293deec758faeedd78cd3127637426c8b9ba86a Mon Sep 17 00:00:00 2001 From: Charlie Moog Date: Mon, 23 Nov 2020 16:54:31 -0600 Subject: [PATCH] Use default scheme of http for dev urls --- coder-sdk/devurl.go | 2 ++ internal/cmd/urls.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/coder-sdk/devurl.go b/coder-sdk/devurl.go index 580fdb03..556c173a 100644 --- a/coder-sdk/devurl.go +++ b/coder-sdk/devurl.go @@ -13,6 +13,7 @@ type DevURL struct { Port int `json:"port" table:"Port"` Access string `json:"access" table:"Access"` Name string `json:"name" table:"Name"` + Scheme string `json:"scheme" table:"-"` } type delDevURLRequest struct { @@ -36,6 +37,7 @@ type CreateDevURLReq struct { Port int `json:"port"` Access string `json:"access"` Name string `json:"name"` + Scheme string `json:"scheme"` } // CreateDevURL inserts a new devurl for the authenticated user. diff --git a/internal/cmd/urls.go b/internal/cmd/urls.go index b885d5d7..ca93ea01 100644 --- a/internal/cmd/urls.go +++ b/internal/cmd/urls.go @@ -180,6 +180,7 @@ func createDevURLCmd() *cobra.Command { Name: urlname, Access: access, EnvID: env.ID, + Scheme: "http", }) if err != nil { return xerrors.Errorf("update DevURL: %w", err) @@ -191,6 +192,7 @@ func createDevURLCmd() *cobra.Command { Name: urlname, Access: access, EnvID: env.ID, + Scheme: "http", }) if err != nil { return xerrors.Errorf("insert DevURL: %w", err)