summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/html.c b/src/html.c
index ec7064c..228e8ef 100644
--- a/src/html.c
+++ b/src/html.c
@@ -315,7 +315,7 @@ static const char *status_to_display(const char *status) {
return status;
}
-char *html_render_clients_page(const char *host, const struct ListClientResult *result, size_t *out_len) {
+char *html_render_clients_page(const struct Request *request, const struct ListClientResult *result, size_t *out_len) {
// Count stale clients
int stale_count = 0;
for (int i = 0; i < result->clients_len; i++) {
@@ -409,7 +409,7 @@ char *html_render_clients_page(const char *host, const struct ListClientResult *
return buf;
}
-char *html_render_client_detail_page(const char *host, const char* proto, const struct GetClientOnlyResult *client_result, const struct GetBackupsResult *backups_result, size_t *out_len) {
+char *html_render_client_detail_page(const struct Request *request, const struct GetClientOnlyResult *client_result, const struct GetBackupsResult *backups_result, size_t *out_len) {
// Determine status and staleness
int is_stale = 0;
const char *current_status = "OK";
@@ -475,8 +475,8 @@ char *html_render_client_detail_page(const char *host, const char* proto, const
" </div>\n"
" </details>\n",
client_result->secret,
- proto != NULL ? proto : "http",
- host != NULL ? host : "localhost",
+ request->proto != NULL ? request->proto : "http",
+ request->host != NULL ? request->host : "localhost",
client_result->name,
client_result->secret
);