mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:12:44 +00:00 
			
		
		
		
	LibWeb: Use StringView in calls to Vector<String>::contains_slow()
This commit is contained in:
		
							parent
							
								
									9663ccff77
								
							
						
					
					
						commit
						fdb27c5851
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -56,7 +56,7 @@ ErrorOr<bool> tao_check(Infrastructure::Request const& request, Infrastructure:: | |||
|     auto values = TRY(response.header_list()->get_decode_and_split("Timing-Allow-Origin"sv.bytes())); | ||||
| 
 | ||||
|     // 3. If values contains "*", then return success.
 | ||||
|     if (values.has_value() && values->contains_slow("*"_string)) | ||||
|     if (values.has_value() && values->contains_slow("*"sv)) | ||||
|         return true; | ||||
| 
 | ||||
|     // 4. If values contains the result of serializing a request origin with request, then return success.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Karol Kosek
						Karol Kosek