| 282 | switch (mode) |
| 283 | { |
| 284 | case SC::HttpClientRequestProxyOptions::Default: |
| 285 | case SC::HttpClientRequestProxyOptions::NoProxy: |
| 286 | case SC::HttpClientRequestProxyOptions::Http: return true; |
| 287 | } |
| 288 | return false; |
| 289 | } |
| 290 | |
| 291 | static bool hasHttpHeaderUnsafeBytes(SC::StringSpan value) |
| 292 | { |
| 293 | const SC::Span<const char> bytes = value.toCharSpan(); |
| 294 | for (size_t idx = 0; idx < bytes.sizeInBytes(); ++idx) |
| 295 | { |
| 296 | if (bytes[idx] == '\r' or bytes[idx] == '\n' or bytes[idx] == '\0') |
| 297 | { |
| 298 | return true; |
| 299 | } |
no test coverage detected