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