diff --git a/http-server.c b/http-server.c index 4b964469de1bd1ba98d64a60bc07b7b0172b6923..674e9a5ab31882188f80940b7abf841d410bb889 100644 --- a/http-server.c +++ b/http-server.c @@ -76,8 +76,8 @@ typedef enum static bool handle_http_request(int sockfd) { // try to read the request - char buff[2049]; - int n = read(sockfd, buff, 2049); + char buff[5000]; + int n = read(sockfd, buff, 5000); if (n <= 0) { if (n < 0) @@ -322,9 +322,8 @@ static bool handle_http_request(int sockfd) } } insert_substring(buff, user2_current_guesses, 587); - } - + if (write(sockfd, buff, st.st_size) < 0) { perror("write"); diff --git a/image_tagger b/image_tagger index f57b2ea9ce8e6f63aafe76988dda1177b9b0d928..2d35bf473aa63119bee75179a4086679ef4ea4ac 100755 Binary files a/image_tagger and b/image_tagger differ