fixed the regex on parseMessage method to work with HTTP 1.0 and not only with HTTP 1.1