aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/handlers.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-11 20:24:54 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-11 20:24:54 -0400
commit705fc2f44be5528b07897cd2f020f429024cddf0 (patch)
treeb4c761104ca78b7fa2df573411808491a3f72eb2 /cmd/web/handlers.go
parent9d5d130038ed90564c3acfb2fd2ff64e3d7b0bd9 (diff)
downloadsteam-export-705fc2f44be5528b07897cd2f020f429024cddf0.tar.gz
steam-export-705fc2f44be5528b07897cd2f020f429024cddf0.tar.xz
Mess around with go-swagger annotations. Remove some commented out code.
Diffstat (limited to 'cmd/web/handlers.go')
-rw-r--r--cmd/web/handlers.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/cmd/web/handlers.go b/cmd/web/handlers.go
index 763c980..e61c29d 100644
--- a/cmd/web/handlers.go
+++ b/cmd/web/handlers.go
@@ -5,9 +5,7 @@ import (
"fmt"
"html/template"
"net/http"
- // "net/url"
"os"
- // "strings"
"time"
"github.com/gorilla/mux"
@@ -50,25 +48,6 @@ func (a *App) HandleInstall(w http.ResponseWriter, r *http.Request) {
uri := r.Form.Get("uri")
- /*
- // Sanity checking on our end before we pass it off
- if strings.HasPrefix(uri, "http") {
- _, err := url.Parse(uri)
- if err != nil {
- Logger.Printf("Installer: While parsing url: %s", err)
- http.Error(w, fmt.Sprintf("Invalid url: %s", err), 400)
- return
- }
- } else {
- fi, err := os.Stat(uri)
- if err != nil || !fi.Mode().IsRegular() {
- Logger.Printf("Installer: While parsing url/path: %s", err)
- http.Error(w, fmt.Sprintf("Invalid uri/path: %s", err), 400)
- return
- }
- }
- */
-
Logger.Printf("Installer: Sending request for: %s to downloader", uri)
go func() {