commit - 67f822ee222a3d9a131449ec1c80c275ca122e1b
commit + c7c382950394eeda4875e2da6812e05c61a291d3
blob - 575743b83a7a92694ff4962d6c41e309c75d0cdb
blob + 6017208e29d944a6b739e580b432aaf6eb981794
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
}
const struct got_error *
-gotweb_render_content_type_file(struct request *c, const uint8_t *type,
- char *file)
+gotweb_render_content_type_file(struct request *c, const char *type,
+ const char *file)
{
fcgi_printf(c, "Content-type: %s\r\n"
"Content-disposition: attachment; filename=%s\r\n\r\n",
blob - f7b430c6ddc57fe8b534234ef999b266f3db35ce
blob + fe2a573ae72fdc13b28304d46671fcdba77efd64
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
const struct got_error *gotweb_render_content_type(struct request *,
const uint8_t *);
const struct got_error
- *gotweb_render_content_type_file(struct request *, const uint8_t *, char *);
+ *gotweb_render_content_type_file(struct request *, const char *,
+ const char *);
void gotweb_get_navs(struct request *, struct gotweb_url *, int *,
struct gotweb_url *, int *);
const struct got_error *gotweb_get_time_str(char **, time_t, int);