(h http.Header, key string)
| 1566 | } |
| 1567 | |
| 1568 | func headerIsTruthy(h http.Header, key string) bool { |
| 1569 | v := strings.ToLower(strings.TrimSpace(h.Get(key))) |
| 1570 | switch v { |
| 1571 | case "1", "true", "yes", "on": |
| 1572 | return true |
| 1573 | default: |
| 1574 | return false |
| 1575 | } |
| 1576 | } |
| 1577 | |
| 1578 | func subscriptionEmptyBodyError(h http.Header) error { |
| 1579 | title := parseSubscriptionHeaderText(h.Get("Profile-Title")) |
no outgoing calls
no test coverage detected