-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
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
digest认证,获取body为nil,怎么能获取到数据 #344
Comments
检查下 err 是否为 nil,也开下 DevMode看看实际返回的跟rkBack结构是否一致 |
err不为nil,err的判断里面我加了continue,后面代码继续在跑,而且statuscode是200,也是成功,就是resp.body是空的 |
我开始用body一个int值作判断的,0就是成功,跑了好多天了,才发现这个问题 |
判断 err 是基础操作,如果不为 nil 一定要报出来方便排查 |
说错,err为nil |
digest两次连接,我感觉resp保留的是第一次401的空body,想看源代码,几次跳转.放弃,跟大佬求助 |
能否给可复现的代码,如不方便公开可发我邮箱 [email protected] |
qq邮箱,已经发送 |
op解决了吗?同样的问题,首次请求成功最终拿到的resp是空的,抓包数据正常。(首次请求内部分为2步,401+200)。 |
因为我的应用比较简单,就是简单restful,除了一个digest认证,目前用原始net/http了, |
rkBack 为nil
实际抓包,是有数据返回的
The text was updated successfully, but these errors were encountered: