Skip to content

Commit

Permalink
fix media type on empty request body
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmanningrapidscale authored Dec 12, 2024
1 parent 8369a99 commit 27a8595
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
request_.Content = content_;
{% endif -%}
{% elsif operation.IsGetOrDeleteOrHead == false -%}
request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "{{ operation.Produces }}");
request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "{{ operation.Consumes }}");
{% endif -%}
{% endif -%}
request_.Method = new System.Net.Http.HttpMethod("{{ operation.HttpMethodUpper | upcase }}");
Expand Down

0 comments on commit 27a8595

Please sign in to comment.