42Webserver / 42-Vienna-Webserv

This project is about writing our own HTTP server in C++
1 stars 0 forks source link

Max body length not working #29

Closed Nikster3k closed 2 months ago

Nikster3k commented 2 months ago

Because we set max body length only after reading in the header, the body could be bigger than client_max_body_size. When reading with buffersize 80k we would read the whole head and remaining body in one recv and set the body before being able to set m_maxBodySize in Request.