x
Main Site login Signup

IResourceInterceptor intercept http with Content-Length 0

I'am using IResourceInterceptor to intercept certain http calls. I get the response from HttpWebRequest and return an ResourceResponse using ResourceResponse.Create with the byte array of the response. This works good when the response contains some data, but I also want to intercept some calls which are only returning https headers. (Content-Length is 0)

I've traced those calls using Fiddler and saw that the calls with Content-Length 0 where called twice. It seams that when an empty byte array is returned Awesomiunm ignores it and calls the url again after OnRequest. Is there some way to prevent Awesomium from calling these urls again?

asked Apr 08, 2016 at 02:41 PM avatar image TheNetStriker 0
more ▼
(comments are locked)
10|1100 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.