Comment on route change

cc @kvz
This commit is contained in:
Felix Geisendörfer 2013-03-20 21:56:33 +01:00
parent f67ce78c4d
commit 230e8425ab
1 changed files with 4 additions and 0 deletions

View File

@ -11,7 +11,11 @@ import (
"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 filesRoute = regexp.MustCompile("^/files/?$")
var dataStore *DataStore