Browse Source

fix for displaying empty code areas on empty http bodies

Alan Shreve 12 years ago
parent
commit
a481c70408
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/ngrok/client/views/web/http.go

+ 4 - 0
src/ngrok/client/views/web/http.go

@@ -154,6 +154,10 @@ func (h *WebHttpView) register() {
 					return nil
 				}
 
+                                if len(b) == 0 {
+                                        return nil
+                                }
+
 				syntaxMap := map[string]string{
 					"text/xml":        "xml",
 					"application/xml": "xml",