Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
01/05/07 04:09:38 (3 years ago)
Author:
david
Message:

Fixed that webrick would strip leading newlines and hang connection (closes #4156) [psross]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/webrick_server.rb

    r5784 r5847  
    143143      data = data.read 
    144144 
    145       raw_header, body = *data.split(/^[\xd\xa]+/on, 2) 
     145      raw_header, body = *data.split(/^[\xd\xa]{2}/on, 2) 
    146146      header = WEBrick::HTTPUtils::parse_header(raw_header) 
    147147