mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 04:04:21 +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
14
packages/wekan-request/tests/test-toJSON.js
Normal file
14
packages/wekan-request/tests/test-toJSON.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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 () {
|
||||
var r = request('http://localhost:8080', function (e, resp) {
|
||||
assert.equal(JSON.parse(JSON.stringify(r)).response.statusCode, 200)
|
||||
s.close()
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue