diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-03-04 20:08:54 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-03-04 20:08:54 +0100 |
| commit | 9020f68ce16b8184c2b9f5cefde2b966b15fc741 (patch) | |
| tree | de164170de0f0f6d583b2831f9861d9583436de3 /Emby.Server.Implementations/HttpServer | |
| parent | 557c4d065ddba0ccc6780c6a4c7811fe45351c88 (diff) | |
Use QueryHelpers.AddQueryString
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/HttpListenerHost.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs index 263fcdbe9..16e3c383b 100644 --- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -321,7 +321,7 @@ namespace Emby.Server.Implementations.HttpServer string pagePathWithoutQueryString = url.Split(new[] { '?' }, StringSplitOptions.RemoveEmptyEntries)[0]; return newQueryString.Count > 0 - ? $"{pagePathWithoutQueryString}?{string.Join("&", newQueryString.Select(value => value.Key + " = " + string.Join(", ", value.Value)))}" + ? QueryHelpers.AddQueryString(pagePathWithoutQueryString, newQueryString.ToDictionary(kv => kv.Key, kv => kv.Value.ToString())) : pagePathWithoutQueryString; } |
