1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-08 12:44:23 +01:00

* gpgkeys_hkp.c (send_key): Send a content-type.

This commit is contained in:
Werner Koch 2004-01-13 11:18:39 +00:00
parent 39c7b95e93
commit 8987a56bea
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): Send a content-type.
2003-12-05 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_ldap.c (main): Avoid possible pre-string write.

View File

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