@@ -86,8 +86,8 @@ type sessionContext struct {
8686type responseData struct {
8787 AuthUserName string
8888
89- IsDownload bool
90- IsDownloadFile bool
89+ IsSimple bool
90+ IsDownload bool
9191
9292 CanIndex bool
9393 CanUpload bool
@@ -368,16 +368,18 @@ func (h *aliasHandler) getSessionData(r *http.Request) (session *sessionContext,
368368
369369 headers := h .getHeaders (vhostReqPath , fsPath , authSuccess )
370370
371+ isSimple := false
371372 isDownload := false
372- isDownloadFile := false
373373 isUpload := false
374374 isMkdir := false
375375 isDelete := false
376376 isMutate := false
377377 switch {
378- case strings .HasPrefix (rawQuery , "downloadfile" ):
378+ case strings .HasPrefix (rawQuery , "simpledownload" ):
379+ isSimple = true
379380 isDownload = true
380- isDownloadFile = true
381+ case strings .HasPrefix (rawQuery , "simple" ):
382+ isSimple = true
381383 case strings .HasPrefix (rawQuery , "download" ):
382384 isDownload = true
383385 case strings .HasPrefix (rawQuery , "upload" ) && r .Method == http .MethodPost :
@@ -537,8 +539,8 @@ func (h *aliasHandler) getSessionData(r *http.Request) (session *sessionContext,
537539 data = & responseData {
538540 AuthUserName : authUserName ,
539541
540- IsDownload : isDownload ,
541- IsDownloadFile : isDownloadFile ,
542+ IsSimple : isSimple ,
543+ IsDownload : isDownload ,
542544
543545 CanIndex : canIndex ,
544546 CanUpload : canUpload ,
@@ -564,10 +566,10 @@ func (h *aliasHandler) getSessionData(r *http.Request) (session *sessionContext,
564566 SubItemPrefix : subItemPrefix ,
565567 SortState : sortState ,
566568 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 ,
571573 },
572574 }
573575 return
0 commit comments