Skip to content
Browse files

Updated for Node version 0.1.25

  • Loading branch information...
1 parent 9218725 commit cca6552e4676233fceab6f0f2545571befc35796 @artisonian artisonian committed with Simon Willison Jan 16, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 djangode.js
View
5 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('.');
@@ -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++) {

0 comments on commit cca6552

Please sign in to comment.
Something went wrong with that request. Please try again.