We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,可否在遇到stream响应头时不要读取body?
requests/sessions.go
Line 465 in ac53c64
stream := strings.Contains(resp.Header.Get("Content-Type"), "application/stream") || strings.Contains(resp.Header.Get("Content-Type"), "text/event-stream") if stream { response := &models.Response{ Url: preq.Url, Headers: resp.Header, Cookies: resp.Cookies(), Text: "", Content: nil, Body: resp.Body, StatusCode: resp.StatusCode, History: []*models.Response{}, Request: req, } if resp.Cookies() != nil { u, _ := url2.Parse(preq.Url) s.Cookies.SetCookies(u, resp.Cookies()) } return response, nil }
这应该还缺了编码处理,可添加这部分处理进项目嘛 ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你好,可否在遇到stream响应头时不要读取body?
requests/sessions.go
Line 465 in ac53c64
这应该还缺了编码处理,可添加这部分处理进项目嘛 ?
The text was updated successfully, but these errors were encountered: