int sz;
Http::StatusCode status;
- /** TODO: create a standalone method to initialize
- * the RedirectStateData for all the helpers.
- */
- RedirectStateData *r = new RedirectStateData(http->uri);
- r->handler = handler;
- r->data = cbdataReference(data);
-
static MemBuf requestExtras;
requestExtras.reset();
if (requestExtrasFmt)
requestExtrasFmt->assemble(requestExtras, http->al, 0);
sz = snprintf(buf, MAX_REDIRECTOR_REQUEST_STRLEN, "%s%s%s\n",
- r->orig_url.c_str(),
+ http->uri,
requestExtras.hasContent() ? " " : "",
requestExtras.hasContent() ? requestExtras.content() : "");
return;
}
+ /** TODO: create a standalone method to initialize
+ * the RedirectStateData for all the helpers.
+ */
+ const auto r = new RedirectStateData(http->uri);
+ r->handler = handler;
+ r->data = cbdataReference(data);
+
debugs(61,6, "sending '" << buf << "' to the " << name << " helper");
helperSubmit(hlp, buf, replyHandler, r);
}