mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	LibWeb: Fully read body if there is one in fetch response handover
Required by XHR's reliance on Fetch.
This commit is contained in:
		
							parent
							
								
									cfbd0bbe0a
								
							
						
					
					
						commit
						e557602d34
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -648,11 +648,10 @@ WebIDL::ExceptionOr<void> fetch_response_handover(JS::Realm& realm, Infrastructu | |||
|                 process_body({}); | ||||
|             }); | ||||
|         } | ||||
|         // FIXME: 4. Otherwise, fully read response’s body given processBody, processBodyError, and fetchParams’s task
 | ||||
|         //        destination.
 | ||||
|         // 4. Otherwise, fully read response’s body given processBody, processBodyError, and fetchParams’s task
 | ||||
|         //    destination.
 | ||||
|         else { | ||||
|             // NOTE: This branch is not taken for JS fetch(), which supplies no 'process response consume body' function.
 | ||||
|             (void)process_body_error; | ||||
|             TRY(response.body()->fully_read(realm, move(process_body), move(process_body_error), fetch_params.task_destination())); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Luke Wilde
						Luke Wilde