set r->headers_out.location for non-local redirects
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 0c36925..4502c17 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2609,6 +2609,10 @@
         return rc;
     }
 
+    if (ho->value.data[0] != '/') {
+        r->headers_out.location = ho;
+    }
+
     /*
      * we do not set r->headers_out.location here to avoid the handling
      * the local redirects without a host name by ngx_http_header_filter()