Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip and canonical

Fixed bug in EwfPage that caused multiple calls to requestHandler.

Changeset 98cea5697926

Parent 81c7cfc8c280

by Profile picture of William GrossWilliam Gross

Changes to one file · Browse files at 98cea5697926 Showing diff from parent 81c7cfc8c280 Diff from another changeset...

 
191
192
193
194
 
 
195
196
197
 
198
199
200
 
191
192
193
 
194
195
196
197
 
198
199
200
201
@@ -191,10 +191,11 @@
  if( disabledMode != null )   throw new PageDisabledException( disabledMode.Message );   - if( requestHandler != null ) { + var cachedRequestHandler = requestHandler; + if( cachedRequestHandler != null ) {   Response.ClearHeaders();   Response.ClearContent(); - requestHandler.WriteResponse(); + cachedRequestHandler.WriteResponse();     // Calling Response.End() is not a good practice; see http://stackoverflow.com/q/1087777/35349. We should be able to remove this call when we separate   // EWF from Web Forms. This is EnduraCode goal 790.