Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

private void SetOptions(Request request) 方法有bug #5

Open
pengwen135 opened this issue Aug 26, 2019 · 2 comments
Open

private void SetOptions(Request request) 方法有bug #5

pengwen135 opened this issue Aug 26, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@pengwen135
Copy link

private void SetOptions(Request request)中
_httpClient.DefaultRequestHeaders 不进行clear 会导致头信息一直被添加

@jxnkwlp
Copy link
Owner

jxnkwlp commented Aug 30, 2019

if (_httpClient.DefaultRequestHeaders.Contains(item.Key))

_httpClient.DefaultRequestHeaders.Remove(item.Key);

此处是有处理的。

@pengwen135
Copy link
Author

_httpClient.DefaultRequestHeaders.Accept.ParseAdd(request.Accept);
// _httpClient.DefaultRequestHeaders.AcceptEncoding.ParseAdd(request.AcceptEncoding);
_httpClient.DefaultRequestHeaders.AcceptLanguage.ParseAdd(request.AcceptLanguage);
这两句没有处理

@jxnkwlp jxnkwlp added the bug Something isn't working label Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants