Don't redirect to absolute URL (fixes #166)
This commit is contained in:
@@ -4,7 +4,6 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
@@ -16,7 +15,7 @@ import (
|
||||
func embeddedStatic() interface{} {
|
||||
var modt = time.Now().UTC().Format(http.TimeFormat)
|
||||
|
||||
return func(res http.ResponseWriter, req *http.Request, log *log.Logger) {
|
||||
return func(res http.ResponseWriter, req *http.Request) {
|
||||
file := req.URL.Path
|
||||
|
||||
if file[0] == '/' {
|
||||
|
||||
Reference in New Issue
Block a user