From bcc5a37155f8fb6bb42886ae2ebccabdc2cf2127 Mon Sep 17 00:00:00 2001 From: Sean Chen Date: Fri, 12 Apr 2019 09:41:31 -0700 Subject: [PATCH] Update server.c --- src/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server.c b/src/server.c index ea43306fc..30b878464 100644 --- a/src/server.c +++ b/src/server.c @@ -158,8 +158,8 @@ void handle_http_request(int fd, struct cache *cache) // IMPLEMENT ME! // /////////////////// - // Read the three components of the first request line - + // Read the first two components of the first line of the request + // If GET, handle the get endpoints // Check if it's /d20 and handle that special case @@ -191,8 +191,8 @@ int main(void) printf("webserver: waiting for connections on port %s...\n", PORT); // This is the main loop that accepts incoming connections and - // forks a handler process to take care of it. The main parent - // process then goes back to waiting for new connections. + // responds to the request. The main parent process + // then goes back to waiting for new connections. while(1) { socklen_t sin_size = sizeof their_addr;