X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Futil.cpp;h=514553f8893feccb3011278fd1454925a5598e76;hb=1f9dc5dc6b1fcaf732cd397370e25834ad891274;hp=062c497bd0f7424868fb8deb353b80d1139f4f56;hpb=edeb7dc220cc1b66ae533ee4baba40b15732a4fd;p=metaproxy-moved-to-github.git diff --git a/src/util.cpp b/src/util.cpp index 062c497..514553f 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2013 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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; }