Loading lib/url.c +101 −108 Original line number Diff line number Diff line Loading @@ -1965,14 +1965,6 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, data->set.tcp_nodelay = (bool)(0 != va_arg(param, long)); break; /* case CURLOPT_SOURCE_URL: case CURLOPT_SOURCE_USERPWD: case CURLOPT_SOURCE_QUOTE: case CURLOPT_SOURCE_PREQUOTE: case CURLOPT_SOURCE_POSTQUOTE: These former 3rd party transfer options are deprecated */ case CURLOPT_FTP_ACCOUNT: result = setstropt(&data->set.str[STRING_FTP_ACCOUNT], va_arg(param, char *)); Loading Loading @@ -4344,11 +4336,12 @@ static CURLcode setup_conn(struct connectdata *conn, set this here perhaps a second time */ #ifdef __EMX__ /* 20000330 mgs * the check is quite a hack... * we're calling _fsetmode to fix the problem with fwrite converting newline * characters (you get mangled text files, and corrupted binary files when * you download to stdout and redirect it to a file). */ /* * This check is quite a hack. We're calling _fsetmode to fix the problem * with fwrite converting newline characters (you get mangled text files, * and corrupted binary files when you download to stdout and redirect it to * a file). */ if((data->set.out)->_handle == NULL) { _fsetmode(stdout, "b"); Loading Loading
lib/url.c +101 −108 Original line number Diff line number Diff line Loading @@ -1965,14 +1965,6 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, data->set.tcp_nodelay = (bool)(0 != va_arg(param, long)); break; /* case CURLOPT_SOURCE_URL: case CURLOPT_SOURCE_USERPWD: case CURLOPT_SOURCE_QUOTE: case CURLOPT_SOURCE_PREQUOTE: case CURLOPT_SOURCE_POSTQUOTE: These former 3rd party transfer options are deprecated */ case CURLOPT_FTP_ACCOUNT: result = setstropt(&data->set.str[STRING_FTP_ACCOUNT], va_arg(param, char *)); Loading Loading @@ -4344,11 +4336,12 @@ static CURLcode setup_conn(struct connectdata *conn, set this here perhaps a second time */ #ifdef __EMX__ /* 20000330 mgs * the check is quite a hack... * we're calling _fsetmode to fix the problem with fwrite converting newline * characters (you get mangled text files, and corrupted binary files when * you download to stdout and redirect it to a file). */ /* * This check is quite a hack. We're calling _fsetmode to fix the problem * with fwrite converting newline characters (you get mangled text files, * and corrupted binary files when you download to stdout and redirect it to * a file). */ if((data->set.out)->_handle == NULL) { _fsetmode(stdout, "b"); Loading