From c8dcc58c1ab1f18cd171975c3c86382140212df3 Mon Sep 17 00:00:00 2001 From: Seednode Date: Thu, 28 Sep 2023 04:42:30 -0500 Subject: [PATCH] Release first stable version! --- cmd/root.go | 2 +- cmd/web.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 35b08cc..6163bd4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,7 +12,7 @@ import ( ) const ( - ReleaseVersion string = "0.97.1" + ReleaseVersion string = "1.0.0" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 56b8a3d..b2706b5 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -37,7 +37,7 @@ const ( logDate string = `2006-01-02T15:04:05.000-07:00` sourcePrefix string = `/source` mediaPrefix string = `/view` - RedirectStatusCode int = http.StatusSeeOther + redirectStatusCode int = http.StatusSeeOther timeout time.Duration = 10 * time.Second ) @@ -231,7 +231,7 @@ func serveRoot(paths []string, regexes *regexes, cache *fileCache, formats *type preparePath(path), queryParams, ) - http.Redirect(w, r, newUrl, RedirectStatusCode) + http.Redirect(w, r, newUrl, redirectStatusCode) } } @@ -377,7 +377,7 @@ func redirectRoot() httprouter.Handle { Prefix, ) - http.Redirect(w, r, newUrl, RedirectStatusCode) + http.Redirect(w, r, newUrl, redirectStatusCode) } }