diff options
author | David Shaw <[email protected]> | 2002-08-27 14:49:23 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-08-27 14:49:23 +0000 |
commit | ce13db5e3c5301cb7760b9e6be4b20699ab6ec39 (patch) | |
tree | f3c151d9193024f8562987dcc817a0e2f2a4f6cc /keyserver/gpgkeys_hkp.c | |
parent | * NEWS: Clarify that --libexecdir is a configure option. (diff) | |
download | gnupg-ce13db5e3c5301cb7760b9e6be4b20699ab6ec39.tar.gz gnupg-ce13db5e3c5301cb7760b9e6be4b20699ab6ec39.zip |
* gpgkeys_hkp.c (http_get, http_post): Use CRLF for line endings.
Diffstat (limited to 'keyserver/gpgkeys_hkp.c')
-rw-r--r-- | keyserver/gpgkeys_hkp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c index f3dc4ec28..3936e474e 100644 --- a/keyserver/gpgkeys_hkp.c +++ b/keyserver/gpgkeys_hkp.c @@ -144,7 +144,7 @@ void http_disconnect(void) int http_get(const char *op,const char *search) { - fprintf(server,"GET /pks/lookup?op=%s&search=%s HTTP/1.0\n\n",op,search); + fprintf(server,"GET /pks/lookup?op=%s&search=%s HTTP/1.0\r\n\r\n",op,search); if(verbose>2) fprintf(console,"gpgkeys: HTTP GET /pks/lookup?op=%s&search=%s HTTP/1.0\n", @@ -159,9 +159,9 @@ int http_post(const char *data) int result; fprintf(server, - "POST /pks/add HTTP/1.0\n" + "POST /pks/add HTTP/1.0\r\n" "Content-type: application/x-www-form-urlencoded\n" - "Content-Length: %d\n\n%s",strlen(data),data); + "Content-Length: %d\r\n\r\n%s",strlen(data),data); if(verbose>2) fprintf(console, |