Skip to content

Commit af099cd

Browse files
committed
Use send_bad_request() for invalid rpc body type.
1 parent 540c583 commit af099cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocols/protocol_bitcoind_rpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
133133
// Endpoint accepts only json-rpc posts.
134134
if (!post->body().contains<rpcin_value>())
135135
{
136-
send_not_acceptable(*post);
136+
send_bad_request(*post);
137137
return;
138138
}
139139

0 commit comments

Comments
 (0)