- Z_HTTP_Response *http_response =
- yaz_url_exec(yaz_url, hreq->path, hreq->method,
+
+ if (h > hreq->path+1 && !memcmp(h-1, "://", 3))
+ uri = hreq->path; /* we have a host already */
+ else
+ {
+ if (default_host.length())
+ uri = default_host + hreq->path;
+ }
+ Z_HTTP_Response *http_response = 0;
+ if (uri.length())
+ http_response =
+ yaz_url_exec(yaz_url, uri.c_str(), hreq->method,