Skip to content

Commit

Permalink
fix: Respond to /health with a proper HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 29, 2024
1 parent 4d11ed5 commit 83a1ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebDriverAgentLib/Routing/FBWebServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ - (void)handleException:(NSException *)exception forResponse:(RouteResponse *)re
- (void)registerServerKeyRouteHandlers
{
[self.server get:@"/health" withBlock:^(RouteRequest *request, RouteResponse *response) {
[response respondWithString:@"I-AM-ALIVE"];
[response respondWithString:@"<!DOCTYPE html><html><title>Health Check</title><body><p>I-AM-ALIVE</p></body></html>"];
}];

NSString *calibrationPage = @"<html>"
Expand Down

0 comments on commit 83a1ae7

Please sign in to comment.