You've already forked cpp-httplib
							
							Fix #489
This commit is contained in:
		@@ -3043,7 +3043,8 @@ get_range_offset_and_length(const Request &req, const Response &res,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
inline bool expect_content(const Request &req) {
 | 
					inline bool expect_content(const Request &req) {
 | 
				
			||||||
  if (req.method == "POST" || req.method == "PUT" || req.method == "PATCH" ||
 | 
					  if (req.method == "POST" || req.method == "PUT" || req.method == "PATCH" ||
 | 
				
			||||||
      req.method == "PRI" || req.method == "DELETE") {
 | 
					      req.method == "PRI" ||
 | 
				
			||||||
 | 
					      (req.method == "DELETE" && req.has_header("Content-Length"))) {
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  // TODO: check if Content-Length is set
 | 
					  // TODO: check if Content-Length is set
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user