| 256 | } |
| 257 | |
| 258 | static int DoraXrtHttpHasHeader(const char* const* headerNames, size_t headerCount, const char* name) { |
| 259 | if (!headerNames || !name) { |
| 260 | return 0; |
| 261 | } |
| 262 | for (size_t i = 0; i < headerCount; ++i) { |
| 263 | if (headerNames[i] && __xhttpStrEqNoCase(headerNames[i], name)) { |
| 264 | return 1; |
| 265 | } |
| 266 | } |
| 267 | return 0; |
| 268 | } |
| 269 | |
| 270 | static char* DoraXrtHttpTrim(char* text) { |
| 271 | char* end; |
no outgoing calls
no test coverage detected