- Test utility function for easy asserting of cases wherein objectLayer (#2865)

is `nil` in API handlers.
- Remove the existing tests for the `nil` check and use the new method
  to test for object layer being `nil`.
This commit is contained in:
Karthic Rao
2016-10-07 02:04:33 +05:30
committed by Harshavardhana
parent c6d2967b84
commit a8105ec068
4 changed files with 275 additions and 75 deletions

View File

@@ -533,7 +533,7 @@ func (api objectAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Req
/// Multipart objectAPIHandlers
// NewMultipartUploadHandler - New multipart upload
// NewMultipartUploadHandler - New multipart upload.
func (api objectAPIHandlers) NewMultipartUploadHandler(w http.ResponseWriter, r *http.Request) {
var object, bucket string
vars := mux.Vars(r)