Buffer overflow when reading the HTTP requests