Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit c3b66aa

Browse files
author
Vicent Marti
committed
http: Alias the old ping endpoint
1 parent ab57486 commit c3b66aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ handle_request(void *cls, struct MHD_Connection *connection,
222222
struct brubeck_server *brubeck = cls;
223223

224224
if (!strcmp(method, "GET")) {
225-
if (!strcmp(url, "/_ping"))
225+
if (!strcmp(url, "/_ping") || !strcmp(url, "/ping"))
226226
response = send_ping(brubeck);
227227

228228
else if (!strcmp(url, "/stats"))

0 commit comments

Comments
 (0)