Permalink
Browse files

Merge branch 'master' of git://github.com/artisonian/djangode

  • Loading branch information...
2 parents e7d9719 + 505589a commit 5e764095baf53f9b49db300da676266e01e05726 Anders Hellerup Madsen committed Jan 17, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 djangode.js
View
@@ -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 5e76409

Please sign in to comment.