Removed unnecessary threading lock
Fixed request http version handling