mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
fix code soundness check
motivation: code should be sound! changes: * update one case of inappropriate langauge * update header years check regex
This commit is contained in:
1 parent
ac2a5afce3
commit
a89e8ae4e0
2 files changed
+3
-3
No files matched your search
@@ -125,7 +125,7 @@ struct HTTP2FrameDecoder {
|
||||
// There needs to be at least the padding length byte, so the minimum frame size is 1.
|
||||
throw InternalError.codecError(code: .protocolError)
|
||||
}
|
||||
|
||||
|
||||
return .awaitingPaddingLengthByte(
|
||||
AwaitingPaddingLengthByteParserState(fromAccumulatingFrameHeader: self, frameHeader: header)
|
||||
)
|
||||
@@ -363,7 +363,7 @@ struct HTTP2FrameDecoder {
|
||||
/// In this state if we succesfully move forward at all we'll produce a DATA frame, as
|
||||
/// well as a new target state.
|
||||
mutating func process() throws -> ProcessResult? {
|
||||
// Sanity checking: the padded flag should be gone.
|
||||
// Making sure the padded flag should be gone.
|
||||
assert(!self.header.flags.contains(.padded))
|
||||
|
||||
let payloadSize = self.remainingByteCount - (self.expectedPadding ?? 0)
|
||||
|
||||
Reference in new issue
Block a user