Fix #79: Properly handle HTTP versions

Close #296.
Update tests w.r.t #296.

See 0b6c822398ab6eeabb6db142f85059272eef54bb.