Skip to content

Commit cf26a00

Browse files
committed
Fix test rdrh003
1 parent 64b1a60 commit cf26a00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/renderer/test_request_hooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def wrap(*args, **kwargs):
253253
if required_jwt_len and (
254254
not token or len(token) != required_jwt_len + len("Bearer ")
255255
):
256+
# Read the data to prevent bug with base http server.
257+
flask.request.get_json(silent=True)
256258
flask.abort(401, description="JWT Expired " + str(token))
257259
except HTTPException as e:
258260
return e

0 commit comments

Comments
 (0)