Windows support fix
This commit is contained in:
		
							parent
							
								
									5fa728192b
								
							
						
					
					
						commit
						6955bac53b
					
				@ -7,7 +7,7 @@ using namespace std;
 | 
				
			|||||||
namespace marcelb {
 | 
					namespace marcelb {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef enum {
 | 
					typedef enum {
 | 
				
			||||||
    GET=0, POST=1, PUT=2, DELETE=3, PATCH=4, get=GET, post=POST, put=PUT, del=DELETE, patch=PATCH
 | 
					    GET=0, POST=1, PUT=2, DEL=3, PATCH=4, get=GET, post=POST, put=PUT, del=DEL, patch=PATCH
 | 
				
			||||||
} http_method;
 | 
					} http_method;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
string http_method_to_str(http_method methode);
 | 
					string http_method_to_str(http_method methode);
 | 
				
			||||||
@ -109,7 +109,7 @@ typedef enum {
 | 
				
			|||||||
} http_response_code;
 | 
					} http_response_code;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
string http_response_code_txt(uint code);
 | 
					string http_response_code_txt(unsigned int code);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -26,7 +26,7 @@ string marcelb::http_method_to_str(http_method methode) {
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
string marcelb::http_response_code_txt(uint code) {
 | 
					string marcelb::http_response_code_txt(unsigned int code) {
 | 
				
			||||||
	switch (code) {
 | 
						switch (code) {
 | 
				
			||||||
        //####### 1xx - Informational #######
 | 
					        //####### 1xx - Informational #######
 | 
				
			||||||
        case 100: return "Continue";
 | 
					        case 100: return "Continue";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user