Skip to content

Commit 7284667

Browse files
committed
Fix explore service root path parse.
1 parent 63b25fe commit 7284667

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/protocols/protocol_explore.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,7 @@ void protocol_explore::handle_receive_get(const code& ec,
152152
}
153153

154154
if (const auto parts = split(uri.path(), "/");
155-
!parts.empty() && parts.size() != two)
156-
{
157-
send_bad_target(*request);
158-
return;
159-
}
160-
else
155+
parts.size() == two)
161156
{
162157
const auto hd = parts.front() == "header" || parts.front() == "hd";
163158
const auto bk = parts.front() == "block" || parts.front() == "bk";

0 commit comments

Comments
 (0)