superagent: multipart requires content-type to be unset

This commit is contained in:
Girish Ramakrishnan
2025-02-15 16:11:55 +01:00
parent 4cfa658fde
commit cceae6770c
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1,6 +1,5 @@
/* global it:false */
/* global describe:false */
/* global before:false */
'use strict';
@@ -22,4 +21,8 @@ describe('Superagent', function () {
const [error] = await safe(superagent.get('https://cloudron.io').set('User-Agent', 'Mozilla').timeout(10*1000).redirects(0));
expect(error).to.be.ok();
});
it('can disable certs', async function () {
await superagent.get('https://www.cloudron.io').set('User-Agent', 'Mozilla').disableTLSCerts();
});
});