(contentType string)
| 1853 | } |
| 1854 | |
| 1855 | func isJSONContentType(contentType string) bool { |
| 1856 | contentType = strings.ToLower(strings.TrimSpace(contentType)) |
| 1857 | return contentType == "application/json" || strings.HasSuffix(contentType, "+json") || contentType == "application/x-ndjson" || contentType == "application/ndjson" |
| 1858 | } |
| 1859 | |
| 1860 | func canonicalizeNDJSONLine(line string) string { |
| 1861 | line = strings.TrimSpace(line) |
no outgoing calls
no test coverage detected