1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* hkp.c (hkp_export): Send a content-type line.

This commit is contained in:
Werner Koch 2004-01-13 11:18:18 +00:00
parent 21d83f02fa
commit 39c7b95e93
2 changed files with 8 additions and 0 deletions

View file

@ -161,6 +161,10 @@ hkp_export( STRLIST users )
return rc;
}
/* 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 );