[rs-commit] r328 - /rs-interop/trunk/src/site/resources/csr/certenroll.js

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Mar 1 14:23:52 CET 2020


Author: minfrin at redwax.eu
Date: Sun Mar  1 14:23:50 2020
New Revision: 328

Log:
Workaround until we can use a multipart/form-data.

Modified:
    rs-interop/trunk/src/site/resources/csr/certenroll.js

Modified: rs-interop/trunk/src/site/resources/csr/certenroll.js
==============================================================================
--- rs-interop/trunk/src/site/resources/csr/certenroll.js	(original)
+++ rs-interop/trunk/src/site/resources/csr/certenroll.js	Sun Mar  1 14:23:50 2020
@@ -89,7 +89,8 @@
         xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
         xhr.setRequestHeader('Accept', 'application/pkcs7-mime');
         xhr.responseType = 'text';
-        var formData = new FormData(document.getElementById('createform'));
+        // var formData = new FormData(document.getElementById('createform'));
+        var formData  = encodeURIComponent('pkcs10') + '=' + encodeURIComponent(document.getElementById('pkcs10').value);
         console.log(formData);
         xhr.send(formData);
 



More information about the rs-commit mailing list