Skip to content

Commit

Permalink
fix: allow empty headers on prefix headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Madrigal committed Oct 3, 2024
1 parent 85dcb19 commit c85db07
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 c85db07

Please sign in to comment.