diff --git a/core/rest/rest_conn.cc b/core/rest/rest_conn.cc index 914d127..8758227 100644 --- a/core/rest/rest_conn.cc +++ b/core/rest/rest_conn.cc @@ -16,6 +16,7 @@ #include #include #include +#include #include "debug.h" @@ -68,7 +69,7 @@ RestConn::parseConn() const os.str(line); string head, data; os >> head >> data; - if (head == "Content-Length:" || head == "content-length:") { + if (boost::iequals(head, "Content-Length:")) { try { len = stoi(data, nullptr); } catch (...) {