Commit Diff


commit - ef0937d6aa633a60c254ef9ab536c2da4ac6ac14
commit + d54f10aa3fdb292115d93d868ae105413f812a7a
blob - 544fd9c7168f4e8dd30337249821101db7696763
blob + f4a673f504a8157ca9bb02ecb41051044f386464
--- 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 - 84499b82e73678ab2e640d55e8f99d6a7fb28689
blob + a9015b764f1032bc9213a3dacfe5cb236f5a76e8
--- 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);