czk 4 years ago
parent
commit
1f32f4aa85
1 changed files with 11 additions and 0 deletions
  1. 11 0
      http/param/url.go

+ 11 - 0
http/param/url.go

@@ -0,0 +1,11 @@
+package param
+
+import "context"
+
+func GetHttpsUrl(c context.Context) string {
+	httpsUrl := c.Value("https_url")
+	if _, ok := httpsUrl.(string); ok {
+		return httpsUrl.(string)
+	}
+	return ""
+}