mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
* Tolerate empty HTTP response body parts ### Motivation Empty HTTP response body parts currently eagerly end a response. This is unexpected and against NIOs documented behaviour. ### Modification - add test which send an empty response body part and would previously fail - skip empty response body parts ### Result Users can send empty body parts without ending the response. * add comment explaining why we do it here instead of fixing it at the source * move empty body part logic to `writeChunk`