Commit 42c0f7f0 authored by mikeytown2's avatar mikeytown2

Issue #1837776 by mikeytown2: Set hostname to self when using an IP for background processing.

parent 3296177c
......@@ -2013,6 +2013,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