Skip to content

Commit 46e5dd2

Browse files
committed
Header serialization update
1 parent 423c8ba commit 46e5dd2

File tree

1 file changed

+1
-1
lines changed
  • codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http

1 file changed

+1
-1
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http/HttpBindingGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ class HttpBindingGenerator(
620620
rustTemplate(
621621
"""
622622
// Empty vecs in headers are serialized as the empty string
623-
if ${context.valueExpression.asValue()}.is_empty() {
623+
if ${context.valueExpression.asRef()}.is_empty() {
624624
builder = builder.header("$headerName", "");
625625
}""",
626626
)

0 commit comments

Comments
 (0)