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 <[email protected]>
Reviewed-By: Aleksey Kozyatinskiy <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
mscdex authored and Fishrock123 committed Oct 11, 2016
1 parent 3d3bce6 commit 573d8bc
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 573d8bc

Please sign in to comment.