Commit 56a8c5c9 authored by Pekka Pessi's avatar Pekka Pessi

Not using msg_copy_all().

darcs-hash:20051107202415-65a35-76443df3bd29f6fc856d0e0be827a3cd86c85c59.gz
parent 93954805
......@@ -629,13 +629,15 @@ nth_client_t *nth_client_tcreate(nth_engine_t * engine,
NTHTAG_AUTHENTICATION_REF(auc),
NTHTAG_MESSAGE_REF(msg), HTTPTAG_VERSION_REF(version), TAG_END());
if (msg == none)
msg = msg_create(engine->he_mclass, engine->he_mflags);
if (msg == none) {
if (template && template->hc_request)
msg = msg_copy(template->hc_request);
else
msg = msg_create(engine->he_mclass, engine->he_mflags);
}
http = http_object(msg);
if (template) {
http_t const *t;
if (callback == NULL)
callback = template->hc_callback;
if (magic == NULL)
......@@ -645,13 +647,6 @@ nth_client_t *nth_client_tcreate(nth_engine_t * engine,
if (uri == NULL)
uri = (url_string_t *) template->hc_url;
t = http_object(template->hc_request);
if (t) {
msg_set_parent(msg, template->hc_request);
msg_copy_all(msg, http, t);
}
if (auc == none)
auc = template->hc_auc;
} else if (auc == none) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment