1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-23 01:22:45 +02:00

(send_key): Add a content type.

This commit is contained in:
Werner Koch 2004-01-13 11:07:25 +00:00
parent 2d14620b2e
commit ef3f2d81a1
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-01-13 Werner Koch <wk@gnupg.org>
* gpgkeys_hkp.c (send_key): Add a content type.
2004-01-11 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_hkp.c (search_key): Catch a mangled input file (useful

View File

@ -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);