| 358 | } |
| 359 | |
| 360 | TString SimulateBodyEncoding(const char* body) { |
| 361 | TString bodyStr; |
| 362 | TStringOutput bodyOut(bodyStr); |
| 363 | TChunkedOutput chunkOut(&bodyOut); |
| 364 | TZLibCompress comprOut(&chunkOut, ZLib::GZip); |
| 365 | comprOut << body; |
| 366 | return bodyStr; |
| 367 | } |
| 368 | |
| 369 | Y_UNIT_TEST(TestRebuildStreamOnPost) { |
| 370 | const char* body = "<html>Hello</html>"; |