Fix HTTP version bug