bin/httphere in httphere-1.1.0 vs bin/httphere in httphere-1.1.1
- old
+ new
@@ -34,10 +34,10 @@
$options[:address] = '0.0.0.0'
opts.on( '-a ADDRESS', '--address ADDRESS', "Listen on ADDRESS ip. Defaults to [#{$options[:address]}]") do |address|
$options[:address] = address
end
- $options[:cache_size] = nil
+ $options[:cache_size] = 1024 # default is to use a 1MB cache
opts.on( '--cache-size SIZE', "Turn in-memory caching on and set the maximum cache size. Example: 500K, 10M, 1G") do |size|
$options[:cache_size] = case size
when /^\d+$/
size.to_i
when /^\d+kb?$/i