Doing write on a GET is invalid. (#2004)

* Doing write on a GET is invalid

* Doing write on a GET is invalid
This commit is contained in:
Kevin Jose Martin 2016-04-20 13:07:12 -04:00 committed by Ben Gotow
parent 33b88996b7
commit 78ea5c0c64
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ class NylasLongConnection
socket.on 'connect', => socket.on 'connect', =>
@setStatus(NylasLongConnection.Status.Connected) @setStatus(NylasLongConnection.Status.Connected)
@closeIfDataStops() @closeIfDataStops()
@_req.write("1") @_req.end()
close: -> close: ->

View file

@ -151,7 +151,7 @@ class NylasLongConnection {
this.closeIfDataStops() this.closeIfDataStops()
}) })
}) })
this._req.write("1") this._req.end()
return this return this
} }