Skip to content

Commit e0db2b2

Browse files
committed
Changed error on accept.
1 parent 497283f commit e0db2b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/lfs/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func CheckAcceptMediaType(ctx *context.Context) {
5959
mediaParts := strings.Split(ctx.Req.Header.Get("Accept"), ";")
6060

6161
if mediaParts[0] != lfs_module.MediaType {
62-
log.Info("Calling a LFS method without accepting the correct media type: %s", lfs_module.MediaType)
63-
writeStatus(ctx, http.StatusNotAcceptable)
62+
log.Trace("Calling a LFS method without accepting the correct media type: %s", lfs_module.MediaType)
63+
writeStatus(ctx, http.StatusUnsupportedMediaType)
6464
return
6565
}
6666
}

0 commit comments

Comments
 (0)