File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ func NewApp(params *param.Params) App {
5555 return App {params : params , server : nil , cache : cache }
5656}
5757
58- func (app * App ) shouldSkipCompression (filePath string ) bool {
58+ func (app * App ) ShouldSkipCompression (filePath string ) bool {
5959 ext := strings .ToLower (filepath .Ext (filePath ))
6060 for _ , blocked := range app .params .NoCompress {
6161 if strings .ToLower (blocked ) == ext {
@@ -83,7 +83,7 @@ func (app *App) CompressFiles() {
8383 return nil
8484 }
8585
86- if app .shouldSkipCompression (filePath ) {
86+ if app .ShouldSkipCompression (filePath ) {
8787 return nil
8888 }
8989
@@ -245,7 +245,7 @@ func (app *App) HandlerFuncNew(w http.ResponseWriter, r *http.Request) {
245245 return
246246 }
247247
248- if r .Header .Get ("Range" ) != "" || app .shouldSkipCompression (requestedPath ) {
248+ if r .Header .Get ("Range" ) != "" || app .ShouldSkipCompression (requestedPath ) {
249249 if responseItem .ContentType != "" {
250250 w .Header ().Set ("Content-Type" , responseItem .ContentType )
251251 }
You can’t perform that action at this time.
0 commit comments