commit - fc89c9001a9df4312083343d1cabb3a8ad055af5
commit + 1b18f4cd75fddf070589d9b045e083ac02d8baba
blob - 5a594dfa2e858f4bb81931e3a6811536ed74ce16
blob + 6f5a07850b9e8e153830292e5ce4f4d986782eff
--- 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 - c54fe3683dc1d915d6d3fa880753b93adc5252e5
blob + 8a9deffd75b83126733cb4d76bb9170bc7604995
--- 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);