Fix request header keyword Capitalization.
Fixed Type Error issue

Using io.BytesIO for FakeSocket
Converted text parameter of _parse_http to a string
and then back to byte just before sending it to
FakeSocket.