@@ -86,8 +86,8 @@ type sessionContext struct {
86
86
type responseData struct {
87
87
AuthUserName string
88
88
89
- IsDownload bool
90
- IsDownloadFile bool
89
+ IsSimple bool
90
+ IsDownload bool
91
91
92
92
CanIndex bool
93
93
CanUpload bool
@@ -368,16 +368,18 @@ func (h *aliasHandler) getSessionData(r *http.Request) (session *sessionContext,
368
368
369
369
headers := h .getHeaders (vhostReqPath , fsPath , authSuccess )
370
370
371
+ isSimple := false
371
372
isDownload := false
372
- isDownloadFile := false
373
373
isUpload := false
374
374
isMkdir := false
375
375
isDelete := false
376
376
isMutate := false
377
377
switch {
378
- case strings .HasPrefix (rawQuery , "downloadfile" ):
378
+ case strings .HasPrefix (rawQuery , "simpledownload" ):
379
+ isSimple = true
379
380
isDownload = true
380
- isDownloadFile = true
381
+ case strings .HasPrefix (rawQuery , "simple" ):
382
+ isSimple = true
381
383
case strings .HasPrefix (rawQuery , "download" ):
382
384
isDownload = true
383
385
case strings .HasPrefix (rawQuery , "upload" ) && r .Method == http .MethodPost :
@@ -537,8 +539,8 @@ func (h *aliasHandler) getSessionData(r *http.Request) (session *sessionContext,
537
539
data = & responseData {
538
540
AuthUserName : authUserName ,
539
541
540
- IsDownload : isDownload ,
541
- IsDownloadFile : isDownloadFile ,
542
+ IsSimple : isSimple ,
543
+ IsDownload : isDownload ,
542
544
543
545
CanIndex : canIndex ,
544
546
CanUpload : canUpload ,
@@ -564,10 +566,10 @@ func (h *aliasHandler) getSessionData(r *http.Request) (session *sessionContext,
564
566
SubItemPrefix : subItemPrefix ,
565
567
SortState : sortState ,
566
568
Context : pathContext {
567
- download : isDownload ,
568
- downloadfile : isDownloadFile ,
569
- sort : rawSortBy ,
570
- defaultSort : h .defaultSort ,
569
+ simple : isSimple ,
570
+ download : isDownload ,
571
+ sort : rawSortBy ,
572
+ defaultSort : h .defaultSort ,
571
573
},
572
574
}
573
575
return
0 commit comments