Commit eb60418d authored by mikeytown2's avatar mikeytown2

Issue #1924932 by mikeytown2: Fix httprl_queue_background_callback() code.

parent 0b18fc12
......@@ -2012,6 +2012,9 @@ function httprl_queue_background_callback(&$args, &$result = NULL) {
if (isset($callback_options['options']) && is_array($callback_options['options'])) {
$options += $callback_options['options'];
}
if (empty($options['headers']['Host']) && !empty($_SERVER['HTTP_HOST'])) {
$options['headers']['Host'] = $_SERVER['HTTP_HOST'];
}
// Send Request.
return httprl_request($url, $options);
}
......
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