There's a bug in the ReadAsStringAsync method that prevents a Content-Type looking like application/json; charset="utf-8"
from being read. It doesn't look like there's a framework fix for it yet, but are there any workarounds?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Before you read the response, you need to remove the quotes:
Here's the complete DelegatingHandler that I'm using:
You want to make sure that you're stripping the quotes as close to the
HttpClientHandler
as possible, which is why the constructor accepts anHttpClientHandler
and not anHttpMessageHandler
.