aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-01-13 11:18:18 +0000
committerWerner Koch <[email protected]>2004-01-13 11:18:18 +0000
commit39c7b95e934f297013477e7fd7441fe86f8f0785 (patch)
tree4e39f2ab0867376713b6222ce31fcf8559296f51
parent* util.h: Add prototype for print_string2(). (diff)
downloadgnupg-39c7b95e934f297013477e7fd7441fe86f8f0785.tar.gz
gnupg-39c7b95e934f297013477e7fd7441fe86f8f0785.zip
* hkp.c (hkp_export): Send a content-type line.
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/hkp.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 6cb69747d..9b0645bb0 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-13 Werner Koch <[email protected]>
+
+ * hkp.c (hkp_export): Send a content-type line.
+
2004-01-09 David Shaw <[email protected]>
* packet.h, getkey.c (merge_selfsigs, merge_selfsigs_main),
diff --git a/g10/hkp.c b/g10/hkp.c
index 287638371..d62becff2 100644
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -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 );