Project

General

Profile

Backport #8013 ยป fix-typo-webrick-httpproxy.patch

no6v (Nobuhiro IMAI), 03/05/2013 04:05 AM

View differences:

lib/webrick/httpproxy.rb
46 46
  #
47 47
  #   proxy = WEBrick::HTTPProxyServer.new Port: 8000
48 48
  #
49
  #   trap 'INT'  do p.shutdown end
50
  #   trap 'TERM' do p.shutdown end
49
  #   trap 'INT'  do proxy.shutdown end
50
  #   trap 'TERM' do proxy.shutdown end
51 51
  #
52
  #   p.start
52
  #   proxy.start
53 53
  #
54 54
  # See ::new for proxy-specific configuration items.
55 55
  #
......
186 186
        res.send_response(ua)
187 187
        access_log(@config, req, res)
188 188

  
189
        # Should clear request-line not to send the sesponse twice.
189
        # Should clear request-line not to send the response twice.
190 190
        # see: HTTPServer#run
191 191
        req.parse(NullReader) rescue nil
192 192
      end