Fix overflow in r_socket_http_get