mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	 70a575d75f
			
		
	
	
		70a575d75f
		
	
	
	
	
		
			
			We currently only support application/x-www-form-urlencoded for form submissions, which uses a special percent encode set when percent encoding the body/query. However, we were not using this percent encode set. With the new URL implementation, we can now specify the percent encode set to be used, allowing us to use this special percent encode set. This is one of the fixes needed to make the Google cookie consent work.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			316 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			316 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/String.h>
 | |
| #include <AK/Vector.h>
 | |
| 
 | |
| namespace Web {
 | |
| 
 | |
| struct URLQueryParam {
 | |
|     String name;
 | |
|     String value;
 | |
| };
 | |
| 
 | |
| String urlencode(const Vector<URLQueryParam>&, URL::PercentEncodeSet);
 | |
| 
 | |
| }
 |