We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c68cb commit 9946ac7Copy full SHA for 9946ac7
Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift
@@ -598,6 +598,9 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
598
)
599
600
case .connected(let context, .sendingResponse):
601
+
602
+ precondition(!hasCustomHeaders, "Programming error: Custom headers should not be sent in this state")
603
604
try await self.sendResponseBodyPart(
605
byteBuffer,
606
sendHeadWithRequestID: nil,
0 commit comments