Windows support fix

testing v0.8
marcelb 11 months ago
parent 5fa728192b
commit 6955bac53b
  1. 4
      lib/elementary.hpp
  2. 2
      src/elementary.cpp

@ -7,7 +7,7 @@ using namespace std;
namespace marcelb {
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;
string http_method_to_str(http_method methode);
@ -109,7 +109,7 @@ typedef enum {
} 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) {
//####### 1xx - Informational #######
case 100: return "Continue";

Loading…
Cancel
Save