Changeset 2629 for lang/ruby/cocproxy
- Timestamp:
- 12/06/07 16:03:25 (5 years ago)
- Files:
-
- 1 modified
-
lang/ruby/cocproxy/proxy.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/cocproxy/proxy.rb
r1589 r2629 159 159 end 160 160 161 parser.on("-n", "--no-cache", "Disable cache.") do |port| 162 @nocache = true 163 end 164 161 165 parser.on("--disable-double-screen", "Disable loading double_screen.rb") do |c| 162 166 @disable_double_screen = c … … 188 192 189 193 server_config = DEFAULT_CONFIG.update(@config["server"]) 190 server_config[:Port] = @port if @port 194 server_config[:Port] = @port if @port 195 server_config[:nocache] = @nocache 191 196 192 197 unless @disable_double_screen … … 198 203 puts "Port : #{server_config[:Port]}" 199 204 puts "Dir : #{server_config[:FilterDir]}/" 205 puts "Cache: #{!server_config[:nocache]}" 200 206 puts "Rules:" 201 207 server_config[:Rules].each_with_index do |item, index| … … 267 273 else 268 274 super 269 @cache[req.request_uri.to_s] = res.dup 275 @cache[req.request_uri.to_s] = res.dup unless @config[:nocache] 270 276 end 271 277 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)