Fix Ajax requests that are using "Bufferless input streams" #806

Merged
merged 1 commit into from Jun 13, 2014

Projects

None yet

3 participants

@ThomasZitzler

HttpRequest.Files throws an exception if the request is read using a
bufferless input stream (this is the case for some of my WCF services
with JSON endpoint). The excpetion screws up the whole switching to that
request. Catching the error will show all other data (e.g. SQL
statements) for that request without problem.

Look at the reference source to see the exception:
http://referencesource.microsoft.com/#System.Web/xsp/system/Web/HttpRequest.cs#d9b62e0b8c0ca2cd

After that fix it works for me properly.

zitzltho Ajax requests that are using "Bufferless input streams" cannot be mon…
…itored

HttpRequest.Files throws an excpetion if the request is read using a
bufferless input stream (this is the case for some of my WCF services
with JSON endpoint). The excpetion screws up the whole switching to that
request. Catching the error will show all other data (e.g. SQL
statements) for that request without problem.
1de23ff
@avanderhoorn
Member

I'm good with this fix. @nikmd23 @CGijbels Do either of you have any input?

@avanderhoorn avanderhoorn added this to the vNext milestone Jun 13, 2014
@nikmd23
Member
nikmd23 commented Jun 13, 2014

This looks good to me as well.

Thanks @ThomasZitzler - I'm pulling this in now and it will go out with our next release.

@nikmd23 nikmd23 merged commit 6dc925a into Glimpse:master Jun 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment