Skip to content

Commit

Permalink
Apply suggestions from code review (use gzip as default for backward …
Browse files Browse the repository at this point in the history
…compat)

Co-authored-by: Rafael Mendonça França <[email protected]>
  • Loading branch information
2 people authored and drinkbeer committed Apr 4, 2023
1 parent 74f99b9 commit 571dc5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/response_bank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def read_from_backing_cache_store(_env, cache_key, backing_cache_store: cache_st
backing_cache_store.read(cache_key, raw: true)
end

def compress(content, encoding = 'br')
def compress(content, encoding = "gzip")
case encoding
when 'gzip'
Zlib.gzip(content, level: Zlib::BEST_COMPRESSION)
Expand All @@ -41,7 +41,7 @@ def compress(content, encoding = 'br')
end
end

def decompress(content, encoding = 'br')
def decompress(content, encoding = "gzip")
case encoding
when 'gzip'
Zlib.gunzip(content)
Expand Down

0 comments on commit 571dc5b

Please sign in to comment.