diff options
Diffstat (limited to 'Utility/Url.hs')
-rw-r--r-- | Utility/Url.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Utility/Url.hs b/Utility/Url.hs index 4e152159a..e47cb9dee 100644 --- a/Utility/Url.hs +++ b/Utility/Url.hs @@ -119,6 +119,11 @@ request url headers requesttype = go 5 url Nothing -> return rsp Just newURI -> go n newURI_abs where +#if defined VERSION_network +#if ! MIN_VERSION_network(2,4,0) +#define WITH_OLD_URI +#endif +#endif #ifdef WITH_OLD_URI newURI_abs = fromMaybe newURI (newURI `relativeTo` u) #else |