Closed jgilbert2017 closed 2 years ago
this exception is thrown when HasBody is false: https://github.com/justcoding121/titanium-web-proxy/blob/7265452f71df63d6dbbc4b7cbf665c09e99dab3f/src/Titanium.Web.Proxy/Http/Response.cs#L45-L77
Could you please check the values of the parameters which are used in this property? RequestMethod, ContentLength, IsChunhed, KeepAlive, HttpVersion (it should be 2.0)
RequestMethod=null ContentLength=-1 IsChunked=false KeepAlive=true HttpVersion={2.0}
checking the response headers, it looks like there is NO Content-length header present.
Do you know any public site where i can reproduce the problem? I tried it, but fo me it seeems that the HasBody is false when it should be false.
What is the status code of your response?
Edit: Ok, maybe I found it.
status is 200 OK. i get the error with https://www.cloudflare.com/diagnostic-center/ the page seems to return no content-length header but has a body.
Please try the latest beta in some minutes (when build completes)
will do. you da man.
the fix works for me! thank you!!!
Hi. I have some working code that I'm trying to enable with HTTP/2.
I've set the
EnableHttp2=true
flag but my code dies when I callawait e.GetResponseBodyAsString();
from aBeforeResponse
application callback with aBodyNotFoundException
.I've run my code using an upstream debugging proxy and have verified that the server is sending a body over http2.
Am I doing something wrong (does my code need to change to support http2?).
Here's a stack: