From: Adam Dickmeiss Date: Tue, 24 Sep 2013 08:28:26 +0000 (+0200) Subject: HTTP response with Metaproxy name and URL MP-493 X-Git-Tag: v1.4.0~8 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=b893b551f97213efbf6e84732c26a2ddb89bcb9b;p=metaproxy-moved-to-github.git HTTP response with Metaproxy name and URL MP-493 --- 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; }