(send_key): Add a content type.
authorWerner Koch <wk@gnupg.org>
Tue, 13 Jan 2004 11:07:25 +0000 (11:07 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 13 Jan 2004 11:07:25 +0000 (11:07 +0000)
keyserver/ChangeLog
keyserver/gpgkeys_hkp.c

index cb4670c..de46f5f 100644 (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
index 698425a..4501ccb 100644 (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);