(req *http.Request)
| 395 | } |
| 396 | |
| 397 | func wantsDiscovery(req *http.Request) bool { |
| 398 | return httputil.IsGet(req) && |
| 399 | (req.Header.Get("Accept") == "text/x-camli-configuration" || |
| 400 | camliMode(req) == "config") |
| 401 | } |
| 402 | |
| 403 | func wantsUploadHelper(req *http.Request) bool { |
| 404 | return req.Method == "POST" && camliMode(req) == "uploadhelper" |