Improve request newline sequence detection

Changes:

    * Detect line break sequence used in request header based on the
      presence of a carriage return prior to the first newline

    * Find header boundary based on the line break sequence detected