Skip to content

Commit

Permalink
Fix t test failures in esp. (envoyproxy#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
chowchow316 committed Dec 28, 2016
1 parent 4089484 commit 9bdb76b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contrib/endpoints/src/api_manager/context/request_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,12 @@ void RequestContext::FillReportRequestInfo(

// Must be after response_code and method are assigned.
FillLogMessage(info);
if(!method()->request_streaming() && !method()->response_streaming()) {
bool is_streaming = false;
if (method() &&
(method()->request_streaming() || method()->response_streaming())) {
is_streaming = true;
}
if (!is_streaming) {
response->GetLatencyInfo(&info->latency);
}
}
Expand Down

0 comments on commit 9bdb76b

Please sign in to comment.