Add Content-Type header to prometheus response (#1662)
Prometheus v3 requires `Content-Type` header Fixes #1658
This commit is contained in:
parent
831b7245aa
commit
791e4c9f7a
@ -65,6 +65,7 @@ MHD_RESULT promhttp_handler(void *cls, struct MHD_Connection *connection, const
|
||||
}
|
||||
ret = MHD_NO;
|
||||
} else {
|
||||
MHD_add_response_header(response, "Content-Type", "text/plain");
|
||||
ret = MHD_queue_response(connection, status, response);
|
||||
MHD_destroy_response(response);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user