You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ class ServerHttpBoundProtocolTraitImplGenerator(
185
185
"header_util" to RuntimeType.smithyHttp(runtimeConfig).resolve("header"),
186
186
"Hyper" to RuntimeType.Hyper,
187
187
"LazyStatic" to RuntimeType.LazyStatic,
188
-
"Mime" to ServerCargoDependency.Mime.toType(),
188
+
"MediaType" to ServerCargoDependency.MediaType.toType(),
189
189
"Nom" to ServerCargoDependency.Nom.toType(),
190
190
"OnceCell" to RuntimeType.OnceCell,
191
191
"PercentEncoding" to RuntimeType.PercentEncoding,
@@ -237,18 +237,16 @@ class ServerHttpBoundProtocolTraitImplGenerator(
237
237
}
238
238
val verifyAcceptHeaderStaticContentTypeInit = writable {
// `expected_content_type` comes from the codegen.
109
-
.expect("BUG: MIME parsing failed, `expected_content_type` is not valid. Please file a bug report under https://github.com/smithy-lang/smithy-rs/issues");
let expected_mime = mediatype::MediaType::parse(expected_content_type)
109
+
// `expected_content_type` comes from the codegen.
110
+
.expect("BUG: MIME parsing failed, `expected_content_type` is not valid. Please file a bug report under https://github.com/smithy-lang/smithy-rs/issues");
0 commit comments