Skip to content
Permalink
Browse files

Talk: force UTF-8 conversion and trim

  • Loading branch information...
fvdm committed Sep 24, 2012
1 parent 1d64b29 commit 47ecc6d40a97fe64142acb6b14da4cca6a269e1d
Showing with 2 additions and 0 deletions.
  1. +2 −0 passdock.js
@@ -90,6 +90,8 @@ app.talk = function( method, path, fields, cb ) {
var data = ''
response.on( 'data', function( d ) { data += d })
response.on( 'end', function() {
data = data.toString('utf8').trim()

if( response.statusCode >= 500 ) {

// server trouble

0 comments on commit 47ecc6d

Please sign in to comment.
You can’t perform that action at this time.