aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-05-07 20:11:32 +0100
committerBaronGreenback <jimcartlidge@yahoo.co.uk>2021-05-07 20:11:32 +0100
commitdca02987106d0433ee4139fb380dd78d92921dae (patch)
tree188cceec1055976c776b9d7d3f1fb99f673890ff /tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
parent8b34f76b63dca54d59b4f3db2f5b485c32bd8e36 (diff)
changed
Diffstat (limited to 'tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs')
-rw-r--r--tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs b/tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
index 80175039e..d6a423dcd 100644
--- a/tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
+++ b/tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
@@ -1,3 +1,4 @@
+using System;
using System.IO;
using System.Linq;
using System.Net;
@@ -29,9 +30,10 @@ namespace Jellyfin.Api.Tests.Controllers
{
var client = _factory.CreateClient();
- var response = await client.GetAsync("Tests/Decoding?" + sourceUrl).ConfigureAwait(false);
+ var response = await client.GetAsync("Tests/UrlDecode?" + sourceUrl).ConfigureAwait(false);
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
- Assert.Equal(unencodedUrl, response.Headers.GetValues("querystring").First());
+ string reply = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Assert.Equal(unencodedUrl, reply);
}
}
}