Skip to content

Commit eb32edb

Browse files
committed
fix: Return string instead of JSON content
1 parent 0fa9207 commit eb32edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Docker.DotNet/JsonSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private JsonSerializer()
1818

1919
public HttpContent GetJsonContent<T>(T value)
2020
{
21-
return JsonContent.Create(value, options: _options);
21+
return new StringContent(Serialize(value), Encoding.UTF8, "application/json");
2222
}
2323

2424
public string Serialize<T>(T value)

0 commit comments

Comments
 (0)