some updates
This commit is contained in:
1 parent
9b25214272
commit
4163aeae40
6 files changed
+256
-234
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package filemanager
|
||||
|
||||
import "net/http"
|
||||
|
||||
// ServeSingleFile redirects the request for the respective method
|
||||
func (f FileManager) ServeSingleFile(w http.ResponseWriter, r *http.Request, file http.File, c *Config) (int, error) {
|
||||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.Write([]byte("Hello"))
|
||||
return 200, nil
|
||||
}
|
||||
Reference in new issue
Block a user