From a73519b428978874aa732cbf9f00b9c117dfca90 Mon Sep 17 00:00:00 2001 From: Vincenzo Chianese Date: Thu, 5 Feb 2015 10:05:58 +0100 Subject: [PATCH] Fixed language rendering failing in case of null body This reverts commit 7875523d727ff5e007ee570a00fba956c9021843. --- csharp.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/csharp.html b/csharp.html index 12e011f..d818eac 100644 --- a/csharp.html +++ b/csharp.html @@ -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 : %>