| 1570 | -------------------------------------------------------------------------*/ |
| 1571 | |
| 1572 | static char * |
| 1573 | http_str_store(Arena *arena, const char *str, int length) |
| 1574 | { |
| 1575 | const char *wks; |
| 1576 | int idx = hdrtoken_tokenize(str, length, &wks); |
| 1577 | if (idx < 0) { |
| 1578 | return arena->str_store(str, length); |
| 1579 | } else { |
| 1580 | return const_cast<char *>(wks); |
| 1581 | } |
| 1582 | } |
| 1583 | |
| 1584 | /*------------------------------------------------------------------------- |
| 1585 | -------------------------------------------------------------------------*/ |
no test coverage detected