From 8ca6ce6fe1e65c8b57b9c0910dfd1243db0e49b9 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Thu, 20 Jun 2024 17:08:26 +0200 Subject: http: return more than data from server app Server app could return headers in front of body/data buffer. Offers apis for building and serialization of headers section. HTTP layer now only add Date, Server and Content-Lengths headers, rest is up to app. Well known header names are predefined. Type: improvement Change-Id: If778bdfc9acf6b0d11a48f0a745a3a56c96c2436 Signed-off-by: Matus Fabian --- src/plugins/prom/prom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/prom') diff --git a/src/plugins/prom/prom.c b/src/plugins/prom/prom.c index 934e8480d3c..76899a2fd12 100644 --- a/src/plugins/prom/prom.c +++ b/src/plugins/prom/prom.c @@ -191,6 +191,7 @@ send_data_to_hss (hss_session_handle_t sh) args.sh = sh; args.data = vec_dup (pm->stats); args.data_len = vec_len (pm->stats); + args.ct = HTTP_CONTENT_TEXT_PLAIN; args.sc = HTTP_STATUS_OK; args.free_vec_data = 1; -- cgit 1.2.3-korg