From 8987a56bea37e10893a77d168fc2931a17d5992f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 13 Jan 2004 11:18:39 +0000 Subject: [PATCH] * gpgkeys_hkp.c (send_key): Send a content-type. --- keyserver/ChangeLog | 4 ++++ keyserver/gpgkeys_hkp.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog index 04702fa3e..8f4e9b2a6 100644 --- a/keyserver/ChangeLog +++ b/keyserver/ChangeLog @@ -1,3 +1,7 @@ +2004-01-13 Werner Koch + + * gpgkeys_hkp.c (send_key): Send a content-type. + 2003-12-05 David Shaw * gpgkeys_ldap.c (main): Avoid possible pre-string write. diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c index 72fa61ef9..d4b2acbae 100644 --- a/keyserver/gpgkeys_hkp.c +++ b/keyserver/gpgkeys_hkp.c @@ -156,6 +156,10 @@ int send_key(void) goto fail; } + /* Some keyservers require this Content-Type (e.g. CryptoEx). */ + iobuf_writestr(hd.fp_write, + "Content-Type: application/x-www-form-urlencoded\r\n"); + sprintf(request,"Content-Length: %u\r\n", (unsigned)iobuf_get_temp_length(temp)+9); iobuf_writestr(hd.fp_write,request);