We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e70312 commit e789c3cCopy full SHA for e789c3c
android_app/app/src/main/cpp/tcp.c
@@ -274,14 +274,13 @@ void check_tcp_socket(const struct arguments *args,
274
} else {
275
if (s->tcp.connect_sent == TCP_CONNECT_SENT) {
276
buffer[bytes] = '\0';
277
+ if (strcmp(buffer, "HTTP/1.0 200") == 0 || strcmp(buffer, "HTTP/1.1 200") == 0) {
278
s->tcp.connect_sent = TCP_CONNECT_ESTABLISHED;
279
while (recv(s->socket, buffer, sizeof(buffer), 0) > 0) {}
280
s->tcp.state = TCP_SYN_RECV;
281
282
write_rst(args, &s->tcp);
283
}
- if (strcmp(buffer, "HTTP/1.0 200") == 0 || strcmp(buffer, "HTTP/1.1 200") == 0) {
284
-
285
286
287
0 commit comments