This commit is contained in:
Xiang Li
2013-07-31 14:55:03 -07:00
parent 159db68009
commit e4fde5b044

View File

@@ -13,7 +13,7 @@ var keywords = map[string]bool{
"/machines": true,
}
// CheckKeyWord will check if the key contains the keyword.
// CheckKeyword will check if the key contains the keyword.
// For now, we only check for prefix.
func CheckKeyword(key string) bool {
key = path.Clean("/" + key)