swift-nio/Tests
Cory Benfield d6ade1424e
Forbid HTTP protocols other than 1. (#283)
Motivation:

Our HTTP code handles only HTTP/1.X. There is no reason to support
HTTP/0.9, and we cannot safely handle a major protocol higher than 1 in
this code, so we should simply treat requests/responses claiming to be
of those protocols as errors.

Modifications:

HTTPDecoder now checks the major version is equal to 1 before it
continues with parsing. If it hits an error, that error will be propagated
out to the user.

Result:

Better resilience against bad HTTP messages.
2018-04-06 11:26:32 +01:00
..
NIOConcurrencyHelpersTests Improve Linux test gen script to match current format. (#3) 2018-02-21 20:16:28 +01:00
NIOHTTP1Tests Forbid HTTP protocols other than 1. (#283) 2018-04-06 11:26:32 +01:00
NIOTLSTests Remove return when possible. (#122) 2018-03-11 22:47:29 +09:00
NIOTests Remove unsafe cross-thread communication from lifecycle test (#284) 2018-04-06 10:06:01 +01:00
NIOWebSocketTests Add new, better helper method for configuring HTTP servers. (#159) 2018-03-16 02:13:13 +09:00
LinuxMain.swift Forbid HTTP protocols other than 1. (#283) 2018-04-06 11:26:32 +01:00