diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog index cb4670ce0..de46f5f70 100644 --- a/keyserver/ChangeLog +++ b/keyserver/ChangeLog @@ -1,3 +1,7 @@ +2004-01-13 Werner Koch + + * gpgkeys_hkp.c (send_key): Add a content type. + 2004-01-11 David Shaw * gpgkeys_hkp.c (search_key): Catch a mangled input file (useful diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c index 698425ada..4501ccb5c 100644 --- a/keyserver/gpgkeys_hkp.c +++ b/keyserver/gpgkeys_hkp.c @@ -165,6 +165,10 @@ send_key(int *eof) 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);