Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/artisonian/djangode
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Hellerup Madsen committed Jan 17, 2010
2 parents e7d9719 + 505589a commit 5e76409
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions djangode.js
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
var http = require('http'), var http = require('http'),
sys = require('sys'), sys = require('sys'),
posix = require('posix'); posix = require('posix')
url = require('url');


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

0 comments on commit 5e76409

Please sign in to comment.