From b893b551f97213efbf6e84732c26a2ddb89bcb9b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 24 Sep 2013 10:28:26 +0200 Subject: [PATCH] HTTP response with Metaproxy name and URL MP-493 --- src/util.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 062c497..bcf1e69 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -612,12 +612,13 @@ Z_GDU *mp::odr::create_HTTP_Response_details(mp::Session &session, response_version = "1.1"; } - Z_GDU *gdu = z_get_HTTP_Response_details(m_odr, code, details); + Z_GDU *gdu = z_get_HTTP_Response_server( + m_odr, code, details, "Metaproxy/" VERSION, + "http://www.indexdata.com/metaproxy"); Z_HTTP_Response *hres = gdu->u.HTTP_Response; hres->version = odr_strdup(m_odr, response_version); if (keepalive) z_HTTP_header_add(m_odr, &hres->headers, "Connection", "Keep-Alive"); - return gdu; } -- 1.7.10.4