| 
					
				 | 
			
			
				@@ -10,29 +10,6 @@ import ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	"github.com/vladimirok5959/golang-utils/utils/http/helpers" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-type ResponseWriter struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	http.ResponseWriter 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Content []byte 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Size    int 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	Status  int 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-func (w *ResponseWriter) Write(b []byte) (int, error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	if RollBarEnabled { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if !RollBarSkipStatusCodes.Contain(w.Status) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			w.Content = append(w.Content, b...) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	size, err := w.ResponseWriter.Write(b) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	w.Size += size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	return size, err 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-func (w *ResponseWriter) WriteHeader(status int) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	w.Status = status 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	w.ResponseWriter.WriteHeader(status) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 func LogInternalError(err error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	log.Printf("%s\n", err.Error()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if RollBarEnabled { 
			 |