mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Review comments -part 4
This commit is contained in:
		
							parent
							
								
									08793a6dae
								
							
						
					
					
						commit
						9901b289b6
					
				
					 4 changed files with 7 additions and 9 deletions
				
			
		|  | @ -13,7 +13,7 @@ | |||
| 
 | ||||
| namespace WebService { | ||||
| 
 | ||||
| constexpr char API_VERSION[]{"1"}; | ||||
| constexpr std::array<const char, 1> API_VERSION{'1'}; | ||||
| 
 | ||||
| constexpr u32 HTTP_PORT = 80; | ||||
| constexpr u32 HTTPS_PORT = 443; | ||||
|  | @ -70,7 +70,7 @@ Common::WebResult Client::GenericJson(const std::string& method, const std::stri | |||
|         }; | ||||
|     } | ||||
| 
 | ||||
|     params.emplace(std::string("api-version"), std::string(API_VERSION)); | ||||
|     params.emplace(std::string("api-version"), std::string(API_VERSION.begin(), API_VERSION.end())); | ||||
|     if (method != "GET") { | ||||
|         params.emplace(std::string("Content-Type"), std::string("application/json")); | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue