Skip to content

Commit 02bee9e

Browse files
committed
Partially roll-back the JSON checks.
1 parent 5bab21c commit 02bee9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/80torture/20json.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
},
9999
content => '{"msgtype": "sytest.dummy", "body": Infinity}',
100100
content_type => "application/json",
101-
)->main::expect_bad_json,
101+
)->main::expect_http_400,
102102

103103
$user->http->do_request(
104104
method => "POST",
@@ -108,7 +108,7 @@
108108
},
109109
content => '{"msgtype": "sytest.dummy", "body": -Infinity}',
110110
content_type => "application/json",
111-
)->main::expect_bad_json,
111+
)->main::expect_http_400,
112112

113113
$user->http->do_request(
114114
method => "POST",
@@ -118,6 +118,6 @@
118118
},
119119
content => '{"msgtype": "sytest.dummy", "body": NaN}',
120120
content_type => "application/json",
121-
)->main::expect_bad_json,
121+
)->main::expect_http_400,
122122
);
123123
};

0 commit comments

Comments
 (0)