mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: Previously, if the user sent us a 0 length chunk, we would encode it as `0\r\n\r\n` which means the _end_ of the body in chunked encoding. But the end in NIO is send by sending `.end(...)`. Modifications: Don't write anything for 0 length writes. Result: More correct behaviour with 0 length body chunks.