Fix error with invalid http version