1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -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:
Gisle Vanem 2005-02-09 11:50:41 +00:00
parent ab938bb9bd
commit 120f17ce04

View File

@ -136,12 +136,12 @@ CURLcode Curl_dict(struct connectdata *conn)
}
result = Curl_sendf(sockfd, conn,
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\r\n"
"MATCH "
"%s " /* database */
"%s " /* strategy */
"%s\n" /* word */
"QUIT\n",
"%s\r\n" /* word */
"QUIT\r\n",
database,
strategy,
@ -180,11 +180,11 @@ CURLcode Curl_dict(struct connectdata *conn)
}
result = Curl_sendf(sockfd, conn,
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\r\n"
"DEFINE "
"%s " /* database */
"%s\n" /* word */
"QUIT\n",
"%s\r\n" /* word */
"QUIT\r\n",
database,
word);
if(result)
@ -209,9 +209,9 @@ CURLcode Curl_dict(struct connectdata *conn)
ppath[i] = ' ';
}
result = Curl_sendf(sockfd, conn,
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
"%s\n"
"QUIT\n", ppath);
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\r\n"
"%s\r\n"
"QUIT\r\n", ppath);
if(result)
failf(data, "Failed sending DICT request");
else