示例#1
0
func wantsPermanode(req *http.Request) bool {
	if httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p")) {
		// The new UI is handled by index.html.
		if req.FormValue("newui") != "1" {
			return true
		}
	}
	return false
}
示例#2
0
文件: ui.go 项目: rakyll/camlistore
func wantsFileTreePage(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("d"))
}
示例#3
0
文件: ui.go 项目: rakyll/camlistore
func wantsBlobInfo(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("b"))
}
示例#4
0
文件: ui.go 项目: rakyll/camlistore
func wantsPermanode(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p"))
}
示例#5
0
func wantsFileTreePage(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("d"))
}
示例#6
0
func wantsBlobInfo(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("b"))
}
示例#7
0
func wantsPermanode(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("p"))
}