Fix proxy error condition and simplify method

Add new minion proxy test case.
This commit is contained in:
Clayton Coleman
2014-08-06 00:53:00 -04:00
parent 91b31c5552
commit 836d2b9808
4 changed files with 95 additions and 18 deletions

View File

@@ -75,7 +75,7 @@ func New(storage map[string]RESTStorage, prefix string) *APIServer {
s.mux.HandleFunc(s.operationPrefix()+"/", s.handleOperation)
// Proxy minion requests
s.mux.HandleFunc("/proxy/minion/", s.handleProxyMinion)
s.mux.Handle("/proxy/minion/", http.StripPrefix("/proxy/minion", http.HandlerFunc(handleProxyMinion)))
return s
}