summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0c4642a)
HttpExchange just checks startsWith, so would also match /api/v1/rpcfoobar
}
private void handleRpcEndpoint(HttpExchange httpExchange) throws IOException {
}
private void handleRpcEndpoint(HttpExchange httpExchange) throws IOException {
+ if (!"/api/v1/rpc".equals(httpExchange.getRequestURI().getPath())) {
+ sendResponse(404, null, httpExchange);
+ return;
+ }
if (!"POST".equals(httpExchange.getRequestMethod())) {
sendResponse(405, null, httpExchange);
return;
if (!"POST".equals(httpExchange.getRequestMethod())) {
sendResponse(405, null, httpExchange);
return;