diff options
Diffstat (limited to 'Utility/Url.hs')
-rw-r--r-- | Utility/Url.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Utility/Url.hs b/Utility/Url.hs index 2f5cb27c2..4e152159a 100644 --- a/Utility/Url.hs +++ b/Utility/Url.hs @@ -119,10 +119,10 @@ request url headers requesttype = go 5 url Nothing -> return rsp Just newURI -> go n newURI_abs where -#ifdef URI_24 - newURI_abs = newURI `relativeTo` u -#else +#ifdef WITH_OLD_URI newURI_abs = fromMaybe newURI (newURI `relativeTo` u) +#else + newURI_abs = newURI `relativeTo` u #endif addheaders req = setHeaders req (rqHeaders req ++ userheaders) userheaders = rights $ map parseHeader headers |