mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-12-05 14:26:34 +01:00
Body Encoding
This commit is contained in:
1 parent
3112054f59
commit
c38373eb1f
10 files changed
+185
-87
No files matched your search
@@ -22,9 +22,9 @@ namespace WireMock.Net.Tests
|
||||
public void Should_parse_query_params()
|
||||
{
|
||||
// given
|
||||
string bodyAsString = "whatever";
|
||||
byte[] body = Encoding.UTF8.GetBytes(bodyAsString);
|
||||
var request = new RequestMessage(new Uri("http://localhost?foo=bar&multi=1&multi=2"), "POST", body, bodyAsString);
|
||||
var bodyAsString = "whatever";
|
||||
var body = Encoding.UTF8.GetBytes(bodyAsString);
|
||||
var request = new RequestMessage(new Uri("http://localhost?foo=bar&multi=1&multi=2"), "POST", body, bodyAsString, Encoding.UTF8);
|
||||
|
||||
// then
|
||||
Check.That(request.GetParameter("foo")).Contains("bar");
|
||||
|
||||
Reference in new issue
Block a user