mirror of
https://github.com/wekan/wekan.git
synced 2026-03-08 06:32:34 +01:00
Fixed Non-ASCII attachment filename will crash when downloading.
Thanks to xet7 ! Fixes #2759
This commit is contained in:
parent
843ff8eaaa
commit
c2da477735
277 changed files with 30568 additions and 52 deletions
16
packages/wekan-request/tests/test-pool.js
Normal file
16
packages/wekan-request/tests/test-pool.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var request = require('../index')
|
||||
, http = require('http')
|
||||
, assert = require('assert')
|
||||
;
|
||||
|
||||
var s = http.createServer(function (req, resp) {
|
||||
resp.statusCode = 200;
|
||||
resp.end('asdf');
|
||||
}).listen(8080, function () {
|
||||
request({'url': 'http://localhost:8080', 'pool': false}, function (e, resp) {
|
||||
var agent = resp.request.agent;
|
||||
assert.strictEqual(typeof agent, 'boolean');
|
||||
assert.strictEqual(agent, false);
|
||||
s.close();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue