mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:32:43 +00:00 
			
		
		
		
	LibHTTP: Ignore empty reads on chunk boundaries
This commit is contained in:
		
							parent
							
								
									3564e4eff1
								
							
						
					
					
						commit
						fdd2d49c5b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -240,6 +240,8 @@ void Job::on_socket_connected() | |||
|                     auto size_lines = size_data.view().lines(); | ||||
|                     dbgln_if(JOB_DEBUG, "Job: Received a chunk with size '{}'", size_data); | ||||
|                     if (size_lines.size() == 0) { | ||||
|                         if (!eof()) | ||||
|                             return AK::IterationDecision::Continue; | ||||
|                         dbgln("Job: Reached end of stream"); | ||||
|                         finish_up(); | ||||
|                         return IterationDecision::Break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ali Mohammad Pur
						Ali Mohammad Pur