http: Wrap the recorder instead of the actual response writer
This commit is contained in:
		
							parent
							
								
									6f635825a9
								
							
						
					
					
						commit
						efb1f455c9
					
				@ -124,7 +124,7 @@ func (this *Handler) serveDocument (
 | 
			
		||||
	// execute document
 | 
			
		||||
	data := HTTPData { }
 | 
			
		||||
	data.Res = WrappedResponseWriter {
 | 
			
		||||
		responseWriter: res,
 | 
			
		||||
		responseWriter: &recorder,
 | 
			
		||||
		resetFunc: resetRecorder,
 | 
			
		||||
		Header: WrappedHeader {
 | 
			
		||||
			Header: recorder.Header(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user