fix some typos in filters
This commit is contained in:
		@@ -129,7 +129,7 @@ type baseTimeoutWriter struct {
 | 
				
			|||||||
	w http.ResponseWriter
 | 
						w http.ResponseWriter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	mu sync.Mutex
 | 
						mu sync.Mutex
 | 
				
			||||||
	// if the timeout handler has timedout
 | 
						// if the timeout handler has timeout
 | 
				
			||||||
	timedOut bool
 | 
						timedOut bool
 | 
				
			||||||
	// if this timeout writer has wrote header
 | 
						// if this timeout writer has wrote header
 | 
				
			||||||
	wroteHeader bool
 | 
						wroteHeader bool
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,7 @@ func WithWaitGroup(handler http.Handler, requestContextMapper apirequest.Request
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		if !longRunning(req, requestInfo) {
 | 
							if !longRunning(req, requestInfo) {
 | 
				
			||||||
			if err := wg.Add(1); err != nil {
 | 
								if err := wg.Add(1); err != nil {
 | 
				
			||||||
				http.Error(w, "Apisever is shutting down.", http.StatusInternalServerError)
 | 
									http.Error(w, "apiserver is shutting down.", http.StatusInternalServerError)
 | 
				
			||||||
				return
 | 
									return
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			defer wg.Done()
 | 
								defer wg.Done()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,8 +30,8 @@ import (
 | 
				
			|||||||
func WithPanicRecovery(handler http.Handler) http.Handler {
 | 
					func WithPanicRecovery(handler http.Handler) http.Handler {
 | 
				
			||||||
	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
 | 
						return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
 | 
				
			||||||
		defer runtime.HandleCrash(func(err interface{}) {
 | 
							defer runtime.HandleCrash(func(err interface{}) {
 | 
				
			||||||
			http.Error(w, "This request caused apisever to panic. Look in log for details.", http.StatusInternalServerError)
 | 
								http.Error(w, "This request caused apiserver to panic. Look in the logs for details.", http.StatusInternalServerError)
 | 
				
			||||||
			glog.Errorf("APIServer panic'd on %v %v: %v\n%s\n", req.Method, req.RequestURI, err, debug.Stack())
 | 
								glog.Errorf("apiserver panic'd on %v %v: %v\n%s\n", req.Method, req.RequestURI, err, debug.Stack())
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		logger := httplog.NewLogged(req, &w)
 | 
							logger := httplog.NewLogged(req, &w)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user