Ejemplo n.º 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
}
Ejemplo n.º 2
0
func wantsFileTreePage(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("d"))
}
Ejemplo n.º 3
0
func wantsBlobInfo(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("b"))
}
Ejemplo n.º 4
0
func wantsPermanode(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p"))
}
Ejemplo n.º 5
0
func wantsFileTreePage(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("d"))
}
Ejemplo n.º 6
0
func wantsBlobInfo(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("b"))
}
Ejemplo n.º 7
0
func wantsPermanode(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("p"))
}