Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
http get app envs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoliwei committed Oct 8, 2019
1 parent 1e247c0 commit 802caaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dist/replication/meta_server/meta_http_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void meta_http_service::get_app_envs_handler(const http_request &req, http_respo

std::string app_name;
for (const auto &p : req.query_args) {
if (0 == p.first.compare("name")) {
if ("name" == p.first) {
app_name = p.second;
break;
}
Expand All @@ -484,6 +484,7 @@ void meta_http_service::get_app_envs_handler(const http_request &req, http_respo
// app name must be set
if (app_name.empty()) {
resp.status_code = http_status_code::bad_request;
resp.body = "app name cann't be empty";
return;
}

Expand Down

0 comments on commit 802caaf

Please sign in to comment.