Skip to content

Commit

Permalink
inspector: fix minor issues
Browse files Browse the repository at this point in the history
PR-URL: #8890
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
mscdex authored and jasnell committed Oct 6, 2016
1 parent 424e165 commit 450b4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void SendHttpResponse(InspectorSocket* socket, const char* response,
const char HEADERS[] = "HTTP/1.0 200 OK\r\n"
"Content-Type: application/json; charset=UTF-8\r\n"
"Cache-Control: no-cache\r\n"
"Content-Length: %ld\r\n"
"Content-Length: %zu\r\n"
"\r\n";
char header[sizeof(HEADERS) + 20];
int header_len = snprintf(header, sizeof(header), HEADERS, len);
Expand Down Expand Up @@ -670,7 +670,7 @@ void AgentImpl::OnRemoteDataIO(InspectorSocket* socket,
uv_sem_post(&start_sem_);
}
PostIncomingMessage(str);
} else if (read <= 0) {
} else {
// EOF
if (client_socket_ == socket) {
String16 message(TAG_DISCONNECT, sizeof(TAG_DISCONNECT) - 1);
Expand Down

0 comments on commit 450b4ae

Please sign in to comment.