Commit 00c42163d96ad8a9b66ebc11e73001d63f482e24

Stefan Sperling 2020-02-07T08:18:38

ensure that we set a mime-type and display index if a blob is empty

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index d92f077..0de2db7 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -3375,8 +3375,6 @@ gw_output_blob_buf(struct gw_trans *gw_trans)
 		error = got_object_blob_read_block(&len, blob);
 		if (error)
 			goto done;
-		if (len == 0)
-			break;
 		buf = got_object_blob_get_read_buf(blob);
 
 		/*