Commit Diff


commit - c72da327af6cd2fde74d7803b528dccf2af02ecc
commit + d27161034833cc359a3fec898d6ddd388ad2622e
blob - e8a77c36de8a9bb990ee17fc8764af9390f1915c
blob + 5896df56e07db2b6726a2df76859fc74bcdea11b
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
@@ -1277,7 +1277,7 @@ got_output_file_blob(struct request *c)
 				type = 0;
 			} else {
 				error = gotweb_render_content_type(c,
-				  "text/text");
+				  "text/plain");
 				if (error) {
 					log_warnx("%s: %s", __func__,
 					    error->msg);
blob - c30fdedd0e6b808f3a0607b931d83f55c2e7b317
blob + 20fd0e5d226524aa6c41eb30f31b5fddcc38ecdb
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -177,11 +177,6 @@ gotweb_process_request(struct request *c)
 		error = got_get_repo_commits(c, 1);
 		if (error)
 			goto done;
-		error = gotweb_render_content_type(c, "text/plain");
-		if (error) {
-			log_warnx("%s: %s", __func__, error->msg);
-			goto err;
-		}
 		error = got_output_file_blob(c);
 		if (error) {
 			log_warnx("%s: %s", __func__, error->msg);