소스 검색

Update 'server/server.go'

Committing 2 lines for transfer.notkiska.pw functionality
master
kiska 3 년 전
부모
커밋
a44149290d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      server/server.go

+ 3
- 1
server/server.go 파일 보기

@@ -407,7 +407,9 @@ func (s *Server) Run() {
r.HandleFunc("/{action:(?:download|get|inline)}/{token}/{filename}", s.headHandler).Methods("HEAD")

r.HandleFunc("/{token}/{filename}", s.previewHandler).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) (match bool) {
match = false
//match = false
return false
match = false

// The file will show a preview page when opening the link in browser directly or
// from external link. If the referer url path and current path are the same it will be


불러오는 중...
취소
저장