HTTP response with Metaproxy name and URL MP-493
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 24 Sep 2013 08:28:26 +0000 (10:28 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 24 Sep 2013 08:28:26 +0000 (10:28 +0200)
src/util.cpp

index 062c497..bcf1e69 100644 (file)
@@ -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;
 }