about summary refs log tree commit diff
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index 1c999dd..b36fc4a 100644
--- a/surf.c
+++ b/surf.c
@@ -1064,7 +1064,13 @@ gettogglestat(Client *c){
 
 static void
 getpagestat(Client *c) {
-	pagestat[0] = c->sslfailed ? 'U' : 'T';
+	const char *uri = geturi(c);
+
+	if(strstr(uri, "https://") == uri)
+		pagestat[0] = c->sslfailed ? 'U' : 'T';
+	else
+		pagestat[0] = '-';
+
 	pagestat[1] = usingproxy ? 'P' : '-';
 }