Skip to content

Commit

Permalink
Fixed language rendering failing in case of null body
Browse files Browse the repository at this point in the history
This reverts commit 7875523.
  • Loading branch information
Vincenzo Chianese committed Feb 5, 2015
1 parent 7875523 commit a73519b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions csharp.html
Expand Up @@ -34,6 +34,9 @@
{
<% end: %>
<% else: %>
<% if !@body?: %>
<% @body = "" %>
<% end: %>
<% if @content_type? : %>
using (var content = new StringContent("<%- @helpers.escape @body %>", System.Text.Encoding.Default, "<%- @content_type %>"))
<% else : %>
Expand Down

0 comments on commit a73519b

Please sign in to comment.