| 519 | } |
| 520 | |
| 521 | void h2_proxy_util_camel_case_header(char *s, size_t len) |
| 522 | { |
| 523 | size_t start = 1; |
| 524 | size_t i; |
| 525 | for (i = 0; i < len; ++i) { |
| 526 | if (start) { |
| 527 | if (s[i] >= 'a' && s[i] <= 'z') { |
| 528 | s[i] -= 'a' - 'A'; |
| 529 | } |
| 530 | |
| 531 | start = 0; |
| 532 | } |
| 533 | else if (s[i] == '-') { |
| 534 | start = 1; |
| 535 | } |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | /******************************************************************************* |
| 540 | * h2 request handling |
no outgoing calls
no test coverage detected