Changeset 22526 for lang/ruby/cocproxy
- Timestamp:
- 11/02/08 00:05:21 (5 years ago)
- Location:
- lang/ruby/cocproxy
- Files:
-
- 2 modified
-
mongrel-proxy.rb (modified) (2 diffs)
-
proxy.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/cocproxy/mongrel-proxy.rb
r15584 r22526 159 159 # from WEBrick 160 160 HopByHop = %w( CONNECTION KEEP-ALIVE PROXY-AUTHENTICATE UPGRADE PROXY-AUTHORIZATION TE TRAILERS TRANSFER-ENCODING ) 161 ShouldNotTransfer = %w( SET-COOKIEPROXY-CONNECTION )161 ShouldNotTransfer = %w( PROXY-CONNECTION ) 162 162 163 163 def choose_header(src, dst={}) … … 231 231 body << content 232 232 end 233 puts "Rewr ited: <= #{local_path}"233 puts "Rewrote: <= #{local_path}" 234 234 else 235 235 if @config[:nocache] 236 236 super 237 237 else 238 @cache_dir.rmtree if req.query.include?("clearcache") 239 @cache_dir.mkpath 240 path = @cache_dir + Digest::MD5.hexdigest(req.params["REQUEST_URI"]) 238 path = @cache_dir + Digest::MD5.hexdigest(req.params["REQUEST_URI"]) 241 239 if path.exist? 242 240 puts "Hit Cache: #{req.params["REQUEST_URI"]}" -
lang/ruby/cocproxy/proxy.rb
r15584 r22526 266 266 res.header["Content-Type"] = WEBrick::HTTPUtils.mime_type(req.path_info, mime_types) 267 267 res.body = content 268 puts "Rewr ited: <= #{local_path}"268 puts "Rewrote: <= #{local_path}" 269 269 else 270 270 @cache = {} if !@cache || req.query.key?("clearcache")
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)