From 9e11f7d0012ea7d0b267129794cff214219d5f96 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 2 Dec 2011 17:20:28 +0100 Subject: [PATCH] do not show headers when there are no headers --- src/CurlyTx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CurlyTx.py b/src/CurlyTx.py index 50b55b0..16d1e31 100644 --- a/src/CurlyTx.py +++ b/src/CurlyTx.py @@ -202,7 +202,7 @@ class CurlyTx(Screen,HelpableScreen): self["text"].setText(self.pageContent) self.pageContent = None self.showingHeaders = False - else: + elif self.httpGetterFactory.response_headers: headers = _("HTTP response headers for") + "\n" + self.currentUrl + "\n\n" for (k, v) in self.httpGetterFactory.response_headers.items(): headers += k + ": " + ("\n" + k + ": ").join(v) + "\n" -- 2.30.2