mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	pkg: cleanup some unused code
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
		
							parent
							
								
									b27f17c9ea
								
							
						
					
					
						commit
						07b568cb53
					
				
					 5 changed files with 3 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -5,9 +5,10 @@ import (
 | 
			
		|||
	"bytes"
 | 
			
		||||
	"encoding/json"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"github.com/Sirupsen/logrus"
 | 
			
		||||
	"net"
 | 
			
		||||
	"net/http"
 | 
			
		||||
 | 
			
		||||
	"github.com/Sirupsen/logrus"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// ResponseModifier allows authorization plugins to read and modify the content of the http.response
 | 
			
		||||
| 
						 | 
				
			
			@ -51,10 +52,6 @@ func NewResponseModifier(rw http.ResponseWriter) ResponseModifier {
 | 
			
		|||
type responseModifier struct {
 | 
			
		||||
	// The original response writer
 | 
			
		||||
	rw http.ResponseWriter
 | 
			
		||||
 | 
			
		||||
	r *http.Request
 | 
			
		||||
 | 
			
		||||
	status int
 | 
			
		||||
	// body holds the response body
 | 
			
		||||
	body []byte
 | 
			
		||||
	// header holds the response header
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue