diff --git a/conf/simple.conf b/conf/simple.conf index 37b502d..1bd3455 100644 --- a/conf/simple.conf +++ b/conf/simple.conf @@ -62,8 +62,8 @@ server:{ root:./www/web4; # root folder of site directory, full or relative path, mandatory parameter autoindex: on; # cgi-bin folder index:index.html; # default page when requesting a directory, index.html by default - CGI_folder:./www/web4/cgi/; # cgi-bin folder - CGI_extension:cgi; # cgi-bin folder +# CGI_folder:./www/web4/cgi/; # cgi-bin folder +# CGI_extension:cgi; # cgi-bin folder }; server:{ diff --git a/mandatory/inc/utils.hpp b/mandatory/inc/utils.hpp index 3cc4a17..c380178 100644 --- a/mandatory/inc/utils.hpp +++ b/mandatory/inc/utils.hpp @@ -18,7 +18,7 @@ #include #include #include -#define MAX_SENT_BYTES 8024 +#define MAX_SENT_BYTES 16048 //8024 template diff --git a/mandatory/src/Header.cpp b/mandatory/src/Header.cpp index 1c0817a..6736334 100644 --- a/mandatory/src/Header.cpp +++ b/mandatory/src/Header.cpp @@ -92,7 +92,7 @@ std::string Header::generateHeader() const if (lastModified != "") header += "Last-modified: " + lastModified + "\r\n"; if(contentLength != 0) - header += "Content-length: " + toString(contentLength) + "\r\n"; + header += "Content-Length: " + toString(contentLength) + "\r\n"; header += "Content-Type: " + contentType + "\r\n"; for (std::map::const_iterator it = attributes.begin(); it != attributes.end(); ++it) header += it->first + ": " + it->second + "\r\n"; @@ -175,7 +175,7 @@ void Header::printReceivedHeader() std::cout << "Server: " << server << std::endl; std::cout << "Date: " << date << std::endl; std::cout << "Last-modified: " << lastModified << std::endl; - std::cout << "Content-length: " << contentLength << std::endl; + std::cout << "Content-Length: " << contentLength << std::endl; std::cout << "Content-Type: " << contentType << std::endl; for (std::map::const_iterator it = attributes.begin(); it != attributes.end(); ++it) std::cout << it->first << ": " << it->second << std::endl;