Skip to content

Commit

Permalink
Handle HEAD request.
Browse files Browse the repository at this point in the history
  • Loading branch information
chowchow316 committed Jan 6, 2017
1 parent e2fec35 commit 244870d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/endpoints/src/api_manager/context/service_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ MethodCallInfo ServiceContext::GetMethodCallInfo(
if (config_ == nullptr) {
return MethodCallInfo();
}
if (http_method == "HEAD") {
return config_->GetMethodCallInfo("GET", url, query_params);
}
return config_->GetMethodCallInfo(http_method, url, query_params);
}

Expand Down

0 comments on commit 244870d

Please sign in to comment.