(ct: string | null | undefined)
| 205 | normalizeContentType(ct).startsWith("multipart/form-data"); |
| 206 | |
| 207 | const isXmlContentType = (ct: string | null | undefined): boolean => { |
| 208 | const normalized = normalizeContentType(ct); |
| 209 | if (!normalized) return false; |
| 210 | return ( |
| 211 | normalized === "application/xml" || normalized === "text/xml" || normalized.endsWith("+xml") |
| 212 | ); |
| 213 | }; |
| 214 | |
| 215 | const isTextContentType = (ct: string | null | undefined): boolean => |
| 216 | normalizeContentType(ct).startsWith("text/"); |
no test coverage detected