@@ -51,12 +51,6 @@ func (rc *requestContext) VerifyLink(oid string) string {
51
51
52
52
// ObjectOidHandler is the main request routing entry point into LFS server functions
53
53
func ObjectOidHandler (ctx * context.Context ) {
54
- if ! setting .LFS .StartServer {
55
- log .Debug ("Attempt to access LFS server but LFS server is disabled" )
56
- writeStatus (ctx , http .StatusNotFound )
57
- return
58
- }
59
-
60
54
if ctx .Req .Method == "GET" || ctx .Req .Method == "HEAD" {
61
55
if isValidAccept (ctx .Req ) {
62
56
getMetaHandler (ctx )
@@ -205,12 +199,6 @@ func getMetaHandler(ctx *context.Context) {
205
199
206
200
// PostHandler instructs the client how to upload data
207
201
func PostHandler (ctx * context.Context ) {
208
- if ! setting .LFS .StartServer {
209
- log .Debug ("Attempt to access LFS server but LFS server is disabled" )
210
- writeStatus (ctx , http .StatusNotFound )
211
- return
212
- }
213
-
214
202
if ! isValidAccept (ctx .Req ) {
215
203
log .Info ("Attempt to POST without accepting the correct media type: %s" , lfs_module .MediaType )
216
204
writeStatus (ctx , http .StatusBadRequest )
@@ -275,12 +263,6 @@ func PostHandler(ctx *context.Context) {
275
263
276
264
// BatchHandler provides the batch api
277
265
func BatchHandler (ctx * context.Context ) {
278
- if ! setting .LFS .StartServer {
279
- log .Debug ("Attempt to access LFS server but LFS server is disabled" )
280
- writeStatus (ctx , http .StatusNotFound )
281
- return
282
- }
283
-
284
266
if ! isValidAccept (ctx .Req ) {
285
267
log .Info ("Attempt to BATCH without accepting the correct media type: %s" , lfs_module .MediaType )
286
268
writeStatus (ctx , http .StatusBadRequest )
@@ -418,12 +400,6 @@ func PutHandler(ctx *context.Context) {
418
400
419
401
// VerifyHandler verify oid and its size from the content store
420
402
func VerifyHandler (ctx * context.Context ) {
421
- if ! setting .LFS .StartServer {
422
- log .Debug ("Attempt to access LFS server but LFS server is disabled" )
423
- writeStatus (ctx , http .StatusNotFound )
424
- return
425
- }
426
-
427
403
if ! isValidAccept (ctx .Req ) {
428
404
log .Info ("Attempt to VERIFY without accepting the correct media type: %s" , lfs_module .MediaType )
429
405
writeStatus (ctx , http .StatusBadRequest )
0 commit comments