(mimetype string)
| 1410 | } |
| 1411 | |
| 1412 | func (h *handler) requestAccepts(mimetype string) bool { |
| 1413 | accept := h.rq.Header.Get("Accept") |
| 1414 | return accept == "" || strings.Contains(accept, mimetype) || strings.Contains(accept, "*/*") |
| 1415 | } |
| 1416 | |
| 1417 | func (h *handler) getBasicAuth() (username string, password string) { |
| 1418 | auth := h.rq.Header.Get("Authorization") |
no test coverage detected