From a1ebb23463f0859013fd03bcf3e0c2234ebb3322 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 23 Oct 2021 08:29:35 +0200 Subject: fix en typos --- Year_3/TSDWL/webserver/server.c | 6 +++--- Year_3/TSDWL/webserver/webserver.tar.xz | Bin 3908 -> 4032 bytes 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Year_3/TSDWL') diff --git a/Year_3/TSDWL/webserver/server.c b/Year_3/TSDWL/webserver/server.c index 0e564d5..000c66f 100644 --- a/Year_3/TSDWL/webserver/server.c +++ b/Year_3/TSDWL/webserver/server.c @@ -174,7 +174,7 @@ parse_first_line(request_t* request, const char* header, size_t len) } break; } - /* If it comes here, it means that the header have more than 3 tokens */ + /* If it comes here, it means that the header has more than 3 tokens */ default: { fprintf(stderr, "Header does not have a valid syntax\n"); goto parse_error; @@ -249,7 +249,7 @@ read_file(char* root, request_t* request, int client) } } - /* The second time send to client the file readed */ + /* The second time send to client the file read */ lseek(fd, SEEK_SET, 0); /* First line of response */ @@ -310,7 +310,7 @@ main(int argc, char* argv[]) www_path = (argc >= 3) ? argv[2] : DEFAULT_WWW; - /* Max 24 headers for now on the stack */ + /* Max 24 headers for now in memory */ headers = malloc(sizeof(char*) * 24); if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1) { diff --git a/Year_3/TSDWL/webserver/webserver.tar.xz b/Year_3/TSDWL/webserver/webserver.tar.xz index db0b5dd..becc77a 100644 Binary files a/Year_3/TSDWL/webserver/webserver.tar.xz and b/Year_3/TSDWL/webserver/webserver.tar.xz differ -- cgit v1.2.3-18-g5258