diff --git a/ExtLibs/GMap.NET.Core/GMap.NET.MapProviders/GMapProvider.cs b/ExtLibs/GMap.NET.Core/GMap.NET.MapProviders/GMapProvider.cs index 578c87537d..61bef78e5e 100644 --- a/ExtLibs/GMap.NET.Core/GMap.NET.MapProviders/GMapProvider.cs +++ b/ExtLibs/GMap.NET.Core/GMap.NET.MapProviders/GMapProvider.cs @@ -402,7 +402,8 @@ protected PureImage GetTileImageUsingHttp(string url) { request.Headers.Add("User-Agent", UserAgent); request.Headers.Add("Accept", requestAccept); - request.Headers.Add("Referer", RefererUrl); + if (!string.IsNullOrEmpty(RefererUrl)) + request.Headers.Add("Referer", RefererUrl); MemoryStream data = Task.Run(async () => {