Vapor: 4.0.2 Release

Release date:
April 14, 2020
Previous version:
4.0.1 (released April 9, 2020)
Magnitude:
17 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in 4.0.2

tanner0101

Directory Browser for 4.0.2

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored and released by @tanner0101.

Improves logic for handling HEAD responses (#2310).

Previously when HEAD requests were detected, the response body would be replaced with an empty body and the content-length header would be re-added. This caused problems with responses that don't use the content-length header, even for non-HEAD requests.

Now, when HEAD requests are detected, the response body is not changed. Instead, a flag is set signaling the serializer to skip serialization of the body.