Skip to content

Commit 0cf2c5d

Browse files
Update pytest_httpserver/httpserver.py
Co-authored-by: Hayao <hayao_s@tokyo-gas.co.jp>
1 parent 7aea597 commit 0cf2c5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pytest_httpserver/httpserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,8 @@ def dispatch(self, request: Request) -> Response:
13051305
"""
13061306
if self._readiness_check_pending:
13071307
self._readiness_check_pending = False
1308-
return Response("OK", status=200)
1308+
from http import HTTPStatus
1309+
return Response(HTTPStatus.OK.phase, status=HTTPStatus.OK.value)
13091310

13101311
if self.permanently_failed:
13111312
return self.respond_permanent_failure()

0 commit comments

Comments
 (0)