Skip to content

Commit 1f92259

Browse files
authored
Merge branch 'main' into sebsto/fix_http_types
2 parents 5889e40 + cd4290a commit 1f92259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AWSLambdaEvents/Utils/HTTP.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extension String.UTF8View {
7474
}
7575
}
7676

77-
extension HTTPResponse.Status: Codable {
77+
extension HTTPResponse.Status: @retroactive Codable {
7878
public func encode(to encoder: any Encoder) throws {
7979
var container = encoder.singleValueContainer()
8080
try container.encode(self.code)
@@ -86,7 +86,7 @@ extension HTTPResponse.Status: Codable {
8686
}
8787
}
8888

89-
extension HTTPRequest.Method: Codable {
89+
extension HTTPRequest.Method: @retroactive Codable {
9090
public func encode(to encoder: any Encoder) throws {
9191
var container = encoder.singleValueContainer()
9292
try container.encode(self.rawValue)

0 commit comments

Comments
 (0)