Commit Diff


commit - 92c8ec640028151d1e92eaef79c4fcd1365998bc
commit + 345b67f25dce7f6a5c981475844df01418a75cbb
blob - 71c0cc53686a79ce8460d54182ee5f79b42fe117
blob + 39453efb256d54ee495702a9fef915782dec76ef
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -657,7 +657,7 @@ gotweb_free_transport(struct transport *t)
 }
 
 const struct got_error *
-gotweb_render_content_type(struct request *c, const uint8_t *type)
+gotweb_render_content_type(struct request *c, const char *type)
 {
 	const char *csp = "default-src 'self'; script-src 'none'; "
 		"object-src 'none';";
blob - 2e636f2ae10ecc8792581ba3ec50726f33ca127f
blob + f3c092bd9402f47b404b596072606dfc3196fce8
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
@@ -434,7 +434,7 @@ int sockets_privinit(struct gotwebd *, struct socket *
 
 /* gotweb.c */
 const struct got_error *gotweb_render_content_type(struct request *,
-    const uint8_t *);
+    const char *);
 const struct got_error
     *gotweb_render_content_type_file(struct request *, const char *,
     const char *, const char *);