Don't need buffer for piping data

This commit is contained in:
Cheng Zhao 2015-06-17 10:19:58 +08:00
parent af05f26a5f
commit 81db8e098e
3 changed files with 26 additions and 47 deletions

View file

@ -82,7 +82,7 @@ describe 'protocol module', ->
server.listen 0, '127.0.0.1', ->
{port} = server.address()
url = "http://127.0.0.1:#{port}"
job = new protocol.RequestHttpJob(url)
job = new protocol.RequestHttpJob({url})
handler = remote.createFunctionWithReturnValue job
protocol.registerProtocol 'atom-http-job', handler