Skip to content

Commit

Permalink
fix: allow empty headers on prefix headers (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
Madrigal authored Oct 7, 2024
1 parent a73f41b commit 90c085e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,11 +877,8 @@ private void writeHttpBindingMember(
writer.write("hv := encoder.Headers($S)", getCanonicalHeader(locationName));
writer.addUseImports(SmithyGoDependency.NET_HTTP);
writer.openBlock("for mapKey, mapVal := range $L {", "}", operand, () -> {
GoValueAccessUtils.writeIfNonZeroValue(context.getModel(), writer, valueMemberShape,
"mapVal", false, false, () -> {
writeHeaderBinding(context, valueMemberShape, "mapVal", location,
"http.CanonicalHeaderKey(mapKey)", "hv");
});
writeHeaderBinding(context, valueMemberShape, "mapVal", location,
"http.CanonicalHeaderKey(mapKey)", "hv");
});
break;
case LABEL:
Expand Down

0 comments on commit 90c085e

Please sign in to comment.