projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9181e94
)
HTTP response with Metaproxy name and URL MP-493
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 24 Sep 2013 08:28:26 +0000
(10:28 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 24 Sep 2013 08:28:26 +0000
(10:28 +0200)
src/util.cpp
patch
|
blob
|
history
diff --git
a/src/util.cpp
b/src/util.cpp
index
062c497
..
bcf1e69
100644
(file)
--- 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;
}