swift-nio/Tests/NIOHTTP1Tests
George Barnett f475d152fb
Don't count CR or LF as whitespace when trimming canonical header values (#1954)
Motivation:

Follow up to https://github.com/apple/swift-nio/pull/1952#discussion_r707351015

The OWS rule from the HTTP semantics draft only considers 'SP' and
'HTAB' to be whitespace. We also (unnecessarily) consider CR and LF to
be whitespace.

Modifications:

- Remove CR and LF from the characters we consider to be whitespace
- Update tests

Result:

We no longer consider CR or LF to be whitespace when trimming
whitespace when producing the canonical form of header values.
2021-09-14 08:26:05 +01:00
..
ByteBufferUtilsTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
ByteBufferUtilsTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPClientUpgradeTests+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPClientUpgradeTests.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPDecoderLengthTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPDecoderLengthTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPDecoderTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPDecoderTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPHeadersTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPHeadersTest.swift Don't count CR or LF as whitespace when trimming canonical header values (#1954) 2021-09-14 08:26:05 +01:00
HTTPRequestEncoderTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPRequestEncoderTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPResponseEncoderTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPResponseEncoderTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPResponseStatusTests+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPResponseStatusTests.swift Fix creating HTTPResponseStatus from 418 (#1140) 2019-09-13 15:28:40 +01:00
HTTPServerClientTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPServerClientTest.swift Move NIO to NIOPosix, make NIO a shell. (#1936) 2021-08-16 16:50:40 +01:00
HTTPServerPipelineHandlerTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPServerPipelineHandlerTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPServerProtocolErrorHandlerTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPServerProtocolErrorHandlerTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPServerUpgradeTests+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPServerUpgradeTests.swift Move NIO to NIOPosix, make NIO a shell. (#1936) 2021-08-16 16:50:40 +01:00
HTTPTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
HTTPTypesTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
HTTPTypesTest.swift Initializing HTTPMethod with String picks explicit value over catch all RAW(value) (#1329) 2020-01-02 11:39:54 -05:00
NIOHTTPObjectAggregatorTest+XCTest.swift issue-1036: Fix for dates on Linux test generation script. (#1894) 2021-07-13 14:31:01 +01:00
NIOHTTPObjectAggregatorTest.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
TestUtils.swift Move NIO to NIOPosix, make NIO a shell. (#1936) 2021-08-16 16:50:40 +01:00