@cryptotaxi247 / netdata-1 / commits / ab6f1c0b2

Return responses even in memory mode none (#5819)

Chris Akritidis committed Apr 9, 2019 at 12:26 UTC ab6f1c0b25c38e70585bfc65ec88ce5f5337f473
1 file changed +5 -5
web/server/web_client.c
+5 -5
@@ -565,11 +565,11 @@ void buffer_data_options2string(BUFFER *wb, uint32_t options) {
565 }
566
567 static inline int check_host_and_call(RRDHOST *host, struct web_client *w, char *url, int (*func)(RRDHOST *, struct web_client *, char *)) {
568 - if(unlikely(host->rrd_memory_mode == RRD_MEMORY_MODE_NONE)) {
569 - buffer_flush(w->response.data);
570 - buffer_strcat(w->response.data, "This host does not maintain a database");
571 - return 400;
572 - }
568 + //if(unlikely(host->rrd_memory_mode == RRD_MEMORY_MODE_NONE)) {
569 + // buffer_flush(w->response.data);
570 + // buffer_strcat(w->response.data, "This host does not maintain a database");
571 + // return 400;
572 + //}
573
574 return func(host, w, url);
575 }