File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- struct RequestFramingMetadata : Equatable {
16
- enum Body : Equatable {
15
+ struct RequestFramingMetadata : Hashable {
16
+ enum Body : Hashable {
17
17
case none
18
18
case stream
19
19
case fixedSize( Int )
Original file line number Diff line number Diff line change @@ -918,11 +918,6 @@ extension TaskHandler: ChannelDuplexHandler {
918
918
return
919
919
}
920
920
921
- // This assert can go away when (if ever!) the above `if` correctly handles other HTTP versions. For example
922
- // in HTTP/1.0, we need to treat the absence of a 'connection: keep-alive' as a close too.
923
- assert ( head. version == . http1_1,
924
- " Sending a request in HTTP version \( head. version) which is unsupported by the above `if` " )
925
-
926
921
if case . fixedSize( let length) = metadata. body {
927
922
self . expectedBodyLength = length
928
923
}
You can’t perform that action at this time.
0 commit comments