Skip to content

Commit dad7521

Browse files
committed
Changed error code according to spec.
1 parent 2b9daab commit dad7521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/lfs/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func CheckAcceptMediaType(ctx *context.Context) {
5555

5656
if mediaParts[0] != lfs_module.MediaType {
5757
log.Info("Calling a LFS method without accepting the correct media type: %s", lfs_module.MediaType)
58-
writeStatus(ctx, http.StatusBadRequest)
58+
writeStatus(ctx, http.StatusNotAcceptable)
5959
return
6060
}
6161
}

0 commit comments

Comments
 (0)