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
15
packages/wekan-request/tests/test-localAddress.js
Normal file
15
packages/wekan-request/tests/test-localAddress.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var request = require('../index')
|
||||
, assert = require('assert')
|
||||
;
|
||||
|
||||
request.get({
|
||||
uri: 'http://www.google.com', localAddress: '1.2.3.4' // some invalid address
|
||||
}, function(err, res) {
|
||||
assert(!res) // asserting that no response received
|
||||
})
|
||||
|
||||
request.get({
|
||||
uri: 'http://www.google.com', localAddress: '127.0.0.1'
|
||||
}, function(err, res) {
|
||||
assert(!res) // asserting that no response received
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue