Fix web handler initialize with distributed lazy init.

This commit is contained in:
Harshavardhana 2016-08-16 13:14:05 -07:00
parent 804d91ef61
commit 0bce3d6d63

View File

@ -934,7 +934,7 @@ func initTestAPIEndPoints(objLayer ObjectLayer, apiFunctions []string) http.Hand
func initTestWebRPCEndPoint(objLayer ObjectLayer) http.Handler {
// Initialize Web.
webHandlers := &webAPIHandlers{
ObjectAPI: objLayer,
ObjectAPI: func() ObjectLayer { return objLayer },
}
// Initialize router.