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

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Mar 1 13:57:43 CET 2020


Author: minfrin at redwax.eu
Date: Sun Mar  1 13:57:42 2020
New Revision: 325

Log:
Use FormData for transferring the pkcs10.

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 13:57:42 2020
@@ -89,7 +89,7 @@
         xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
         xhr.setRequestHeader('Accept', 'application/pkcs7-mime');
         xhr.responseType = 'text';
-        var formData = document.getElementById('createform').serialize();
+        var formData = new FormData(document.getElementById('createform'));
         console.log(formData);
         xhr.send(formData);
 



More information about the rs-commit mailing list