Skip to content

Commit 23a1ac6

Browse files
committed
Renamed the method name from shouldSkipCompression to ShouldSkipCompression.
1 parent 28329c8 commit 23a1ac6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)