parent
f67ce78c4d
commit
230e8425ab
|
@ -11,7 +11,11 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// fileRoute matches /files/<id>. Go seems to use \r to terminate header
|
||||||
|
// values, so to ease bash scripting, the route ignores a trailing \r in the
|
||||||
|
// route. Better ideas are welcome.
|
||||||
var fileRoute = regexp.MustCompile("^/files/([^/\r\n]+)\r?$")
|
var fileRoute = regexp.MustCompile("^/files/([^/\r\n]+)\r?$")
|
||||||
|
|
||||||
var filesRoute = regexp.MustCompile("^/files/?$")
|
var filesRoute = regexp.MustCompile("^/files/?$")
|
||||||
var dataStore *DataStore
|
var dataStore *DataStore
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue