| 35 | }; |
| 36 | |
| 37 | inline bool HasHostHeader(TStringBuf headers) { |
| 38 | THeaderSplitter splitter(headers); |
| 39 | TStringBuf header; |
| 40 | while (splitter.Next(header)) { |
| 41 | if (AsciiHasPrefixIgnoreCase(header, "Host:")) { |
| 42 | return true; |
| 43 | } |
| 44 | } |
| 45 | return false; |
| 46 | } |
| 47 | |
| 48 | template <typename Port> |
| 49 | void WriteHostHeaderIfNot(IOutputStream& out, TStringBuf host, Port port, TStringBuf headers) { |
no test coverage detected