You've already forked cpp-httplib
Removed get_header_value_int and use uint64_t for the return value of get_header_value_uint64
This commit is contained in:
@ -781,14 +781,7 @@ inline const char *get_header_value(const Headers &headers, const char *key,
|
||||
return def;
|
||||
}
|
||||
|
||||
inline int get_header_value_int(const Headers &headers, const char *key,
|
||||
int def = 0) {
|
||||
auto it = headers.find(key);
|
||||
if (it != headers.end()) { return std::stoi(it->second); }
|
||||
return def;
|
||||
}
|
||||
|
||||
inline unsigned long long get_header_value_uint64(const Headers &headers, const char *key,
|
||||
inline uint64_t get_header_value_uint64(const Headers &headers, const char *key,
|
||||
int def = 0) {
|
||||
auto it = headers.find(key);
|
||||
if (it != headers.end()) {
|
||||
|
Reference in New Issue
Block a user