Skip to content

Commit

Permalink
Updated for Node version 0.1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
artisonian authored and Simon Willison committed Feb 15, 2010
1 parent 9218725 commit cca6552
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions djangode.js
@@ -1,6 +1,7 @@
var http = require('http'),
sys = require('sys'),
posix = require('posix');
posix = require('posix')
url = require('url');

function extname(path) {
var index = path.lastIndexOf('.');
Expand Down Expand Up @@ -94,7 +95,7 @@ exports.makeApp = function(urls, options) {
return function(req, res) {
debuginfo.last_request = req;
debuginfo.last_response = res;
var path = req.uri.path;
var path = url.parse(req.url)["pathname"];
var view = show_404;
var args = [req, res];
for (var pair, i = 0; pair = compiled[i]; i++) {
Expand Down

0 comments on commit cca6552

Please sign in to comment.