Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

util.inherits -> inherits

  • Loading branch information...
commit d5f6f87ff3eed5e264dbacf5bc764374252d9f4b 1 parent 000cfae
Alexander Dorofeev authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  README.md
  2. +2 −2 index.js
2  README.md
View
@@ -17,7 +17,7 @@ simplify response flow control:
kaph.Handler.call(this, request, response, args);
this.context = context;
}
- sys.inherits(Handler, kaph.Handler);
+ util.inherits(Handler, kaph.Handler);
Handler.prototype.GET = function(name) {
if (name == undefined) {
4 index.js
View
@@ -2,7 +2,7 @@
* Kaph. Routerless HTTP handler for node.js
*/
-var util = require('util');
+var inherits = require('util').inherits;
var http = require('http');
var url = require('url');
var Buffer = require('buffer').Buffer;
@@ -282,5 +282,5 @@ function HttpError(code, reason) {
this.message = this.code + " " + this.reason;
Error.captureStackTrace(this);
}
-util.inherits(HttpError, Error);
+inherits(HttpError, Error);
exports.HttpError = HttpError;
Please sign in to comment.
Something went wrong with that request. Please try again.