summaryrefslogtreecommitdiff
path: root/src/rhimportd/uploadWeb.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-02 16:10:36 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-02 16:10:36 (GMT)
commit8933910f9846bac630bf0dab06a4b7cd6b2b5ce3 (patch)
treeb5babbb14840c9fcac437c1122fd7d8071d9367e /src/rhimportd/uploadWeb.go
parent24420034428f6bafc41b34e9b8a6316b4f2aa65e (diff)
added http static dir for static files
Diffstat (limited to 'src/rhimportd/uploadWeb.go')
-rw-r--r--src/rhimportd/uploadWeb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhimportd/uploadWeb.go b/src/rhimportd/uploadWeb.go
index 3a4e7bc..4dc0368 100644
--- a/src/rhimportd/uploadWeb.go
+++ b/src/rhimportd/uploadWeb.go
@@ -64,7 +64,7 @@ const (
func webUploadHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport.SessionStoreChan, trusted bool, w http.ResponseWriter, r *http.Request) {
if r.Method == "GET" {
- http.ServeFile(w, r, "./html/upload-form.html") // TODO: hardcoded html-dir... should we print the html directly?
+ http.Redirect(w, r, "/static/upload-form.html", http.StatusTemporaryRedirect)
return
}