From 2663c69f8d8ea4df9fbc40b03186259186011e97 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 18 May 2010 09:32:28 -0700 Subject: [PATCH] Fix utf8stream references --- lib/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.js b/lib/http.js index 0030ddcc0b..782cd62935 100644 --- a/lib/http.js +++ b/lib/http.js @@ -9,7 +9,7 @@ function debug (x) { var sys = require('sys'); var net = require('net'); -var Utf8Stream = require('utf8_stream').Utf8Stream; +var Utf8Decoder = require('utf8decoder').Utf8Decoder; var events = require('events'); var Buffer = require('buffer').Buffer; @@ -202,7 +202,7 @@ IncomingMessage.prototype.setEncoding = function (enc) { // TODO check values, error out on bad, and deprecation message? this._encoding = enc.toLowerCase(); if (this._encoding == 'utf-8' || this._encoding == 'utf8') { - this._decoder = new Utf8Stream(); + this._decoder = new Utf8Decoder(); this._decoder.onString = function(str) { this.emit('data', str); };