diff --git a/lib/elementary.hpp b/lib/elementary.hpp index 893dd6d..05b531f 100644 --- a/lib/elementary.hpp +++ b/lib/elementary.hpp @@ -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); } diff --git a/src/elementary.cpp b/src/elementary.cpp index 6b244c9..bdd5851 100644 --- a/src/elementary.cpp +++ b/src/elementary.cpp @@ -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";