static int http_body_callback(http_parser* parser, const char* data,
size_t len)
-@@ -1599,43 +1622,43 @@
+@@ -1645,43 +1667,43 @@
std::string m_keep_alive;
std::string m_path;
std::string m_address;
@@ -568,6 +570,15 @@
http_parser_data m_http_parser_data;
- unsigned m_data_limit = 524288; // bytes
+ unsigned m_data_limit; // bytes
+
+ // older versions of kubernetes send pretty-printed JSON by default;
+ // that creates a problem with JSON-newline-delimit-based detection
logic,
+@@ -1692,7 +1714,7 @@
+ // this flag is true by default and it remains true until the first
state http
+ // request for this handler is completed, at which point all newlines
are purged
+ // from the string and the purged buffer is posted for further
processing
+- bool m_fetching_state = true;
++ bool m_fetching_state;
};