Convert everything to bytes
This commit is contained in:
@@ -89,7 +89,7 @@ func (zr *ZurgRouter) httpTorrentDirectoryHandler(resp http.ResponseWriter, req
|
||||
}
|
||||
resp.Header().Set("Content-Type", "text/html; charset=\"utf-8\"")
|
||||
resp.WriteHeader(http.StatusOK)
|
||||
fmt.Fprint(resp, *out)
|
||||
resp.Write(out)
|
||||
}
|
||||
|
||||
func (zr *ZurgRouter) httpDirectoryHandler(resp http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
@@ -101,7 +101,7 @@ func (zr *ZurgRouter) httpDirectoryHandler(resp http.ResponseWriter, req *http.R
|
||||
}
|
||||
resp.Header().Set("Content-Type", "text/html; charset=\"utf-8\"")
|
||||
resp.WriteHeader(http.StatusOK)
|
||||
fmt.Fprint(resp, *out)
|
||||
resp.Write(out)
|
||||
}
|
||||
|
||||
func (zr *ZurgRouter) httpRootHandler(resp http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
@@ -112,7 +112,7 @@ func (zr *ZurgRouter) httpRootHandler(resp http.ResponseWriter, req *http.Reques
|
||||
}
|
||||
resp.Header().Set("Content-Type", "text/html; charset=\"utf-8\"")
|
||||
resp.WriteHeader(http.StatusOK)
|
||||
fmt.Fprint(resp, *out)
|
||||
resp.Write(out)
|
||||
}
|
||||
|
||||
func (zr *ZurgRouter) propfindFileHandler(resp http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
|
||||
Reference in New Issue
Block a user