diff --git a/main.go b/main.go index 08678bc..32e86bb 100644 --- a/main.go +++ b/main.go @@ -88,6 +88,7 @@ type Context struct { StatusCode int Err *error IsTLS bool + DownloadURL string } func NewContext(r *http.Request) *Context { @@ -173,6 +174,7 @@ func main() { downloadURL := string(body) log.Println("URL from convx", downloadURL) + ctx.DownloadURL = downloadURL err = templates.ExecuteTemplate(w,"download-result.html", ctx) if err != nil { log.Println(err.Error()) diff --git a/templates/download-result.html b/templates/download-result.html index a6fa084..31e6e93 100644 --- a/templates/download-result.html +++ b/templates/download-result.html @@ -1,6 +1,9 @@
{{ if eq .StatusCode 200 }} -Download + + Download + +Right click and Click "Save link as" {{ else }}