mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Replace LF with CRLF. Ref RFC-2229, sec 2.3:
"Each command line must be terminated by a CRLF".
This commit is contained in:
parent
ab938bb9bd
commit
120f17ce04
18
lib/dict.c
18
lib/dict.c
@ -136,12 +136,12 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
result = Curl_sendf(sockfd, conn,
|
result = Curl_sendf(sockfd, conn,
|
||||||
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\r\n"
|
||||||
"MATCH "
|
"MATCH "
|
||||||
"%s " /* database */
|
"%s " /* database */
|
||||||
"%s " /* strategy */
|
"%s " /* strategy */
|
||||||
"%s\n" /* word */
|
"%s\r\n" /* word */
|
||||||
"QUIT\n",
|
"QUIT\r\n",
|
||||||
|
|
||||||
database,
|
database,
|
||||||
strategy,
|
strategy,
|
||||||
@ -180,11 +180,11 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
result = Curl_sendf(sockfd, conn,
|
result = Curl_sendf(sockfd, conn,
|
||||||
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\r\n"
|
||||||
"DEFINE "
|
"DEFINE "
|
||||||
"%s " /* database */
|
"%s " /* database */
|
||||||
"%s\n" /* word */
|
"%s\r\n" /* word */
|
||||||
"QUIT\n",
|
"QUIT\r\n",
|
||||||
database,
|
database,
|
||||||
word);
|
word);
|
||||||
if(result)
|
if(result)
|
||||||
@ -209,9 +209,9 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
ppath[i] = ' ';
|
ppath[i] = ' ';
|
||||||
}
|
}
|
||||||
result = Curl_sendf(sockfd, conn,
|
result = Curl_sendf(sockfd, conn,
|
||||||
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\r\n"
|
||||||
"%s\n"
|
"%s\r\n"
|
||||||
"QUIT\n", ppath);
|
"QUIT\r\n", ppath);
|
||||||
if(result)
|
if(result)
|
||||||
failf(data, "Failed sending DICT request");
|
failf(data, "Failed sending DICT request");
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user