mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-23 11:26:16 +00:00
http: status code for bad date/time range
This commit is contained in:
@@ -156,8 +156,8 @@ static int dispatch(struct mg_connection *conn, const char *uri)
|
||||
}
|
||||
|
||||
if (make_times(time_from, &s_lo, time_to, &s_hi) != 1) {
|
||||
mg_send_status(conn, 405);
|
||||
mg_printf_data(conn, "wrong times\n");
|
||||
mg_send_status(conn, 416);
|
||||
mg_printf_data(conn, "impossible date/time ranges\n");
|
||||
return (MG_TRUE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user