Remove unnecessary status texts
This commit is contained in:
parent
f1f078a053
commit
ef7e54055e
5 changed files with 6 additions and 10 deletions
|
@ -17,8 +17,6 @@ func DeleteBucketHandler(s3 S3Client) http.Handler {
|
|||
return
|
||||
}
|
||||
|
||||
code := http.StatusNoContent
|
||||
w.WriteHeader(code)
|
||||
w.Write([]byte(http.StatusText(code)))
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ func TestDeleteBucketHandler(t *testing.T) {
|
|||
"success": {
|
||||
s3: &S3ClientMock{},
|
||||
expectedStatusCode: http.StatusNoContent,
|
||||
expectedBodyContains: http.StatusText(http.StatusNoContent),
|
||||
expectedBodyContains: "",
|
||||
},
|
||||
"s3 error": {
|
||||
s3: &S3ClientMock{
|
||||
|
|
|
@ -17,8 +17,6 @@ func DeleteObjectHandler(s3 S3Client) http.Handler {
|
|||
return
|
||||
}
|
||||
|
||||
code := http.StatusNoContent
|
||||
w.WriteHeader(code)
|
||||
w.Write([]byte(http.StatusText(code)))
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ func TestDeleteObjectHandler(t *testing.T) {
|
|||
"success": {
|
||||
s3: &S3ClientMock{},
|
||||
expectedStatusCode: http.StatusNoContent,
|
||||
expectedBodyContains: http.StatusText(http.StatusNoContent),
|
||||
expectedBodyContains: "",
|
||||
},
|
||||
"s3 error": {
|
||||
s3: &S3ClientMock{
|
||||
|
|
4
glide.lock
generated
4
glide.lock
generated
|
@ -1,8 +1,8 @@
|
|||
hash: 9b88c8ce183463a407bdb87f79b6b857d8343a7bb5ce4723223c539c654d6d6d
|
||||
updated: 2017-04-07T20:28:20.316814149+02:00
|
||||
updated: 2017-04-10T14:15:00.7611986+02:00
|
||||
imports:
|
||||
- name: github.com/gorilla/context
|
||||
version: 08b5f424b9271eedf6f9f0ce86cb9396ed337a42
|
||||
version: 1ea25387ff6f684839d82767c1733ff4d4d15d0a
|
||||
- name: github.com/gorilla/mux
|
||||
version: 392c28fe23e1c45ddba891b0320b3b5df220beea
|
||||
- name: github.com/mastertinner/adapters
|
||||
|
|
Loading…
Reference in a new issue