Skip to content

Commit

Permalink
fix for client-side path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
meelash committed Jul 2, 2012
1 parent 6dc4b07 commit 609a8bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/server.coffee
Expand Up @@ -176,7 +176,7 @@ serverRequire.listen = (server, options, callback)->
else if (req.url.search /^\/mundlejs\//) isnt -1
parsedUrl = url.parse req.url[9...], yes
# if req.headers.clientid?
filePath = parsedUrl.pathname[1...]
filePath = '/' + parsedUrl.pathname[1...]
clientCacheDiff = parsedUrl.query
serverRequire filePath, clientCacheDiff, (err, results)->
res.end JSON.stringify {err, results}
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark/ab.c
Expand Up @@ -93,7 +93,7 @@
// ---- Static files ----------------------------------------------------------
// #define URL "/~saleemabdulhamid/test.js" // for apache
// #define URL "/test.js" // for connect
#define URL "/mundlejs/KDApplications/Home.kdapplication/AppController" // for mundlejs
#define URL "/mundlejs/KDApplications/Home.kdapplication/AppController.js" // for mundlejs
//#define URL "/?fractal"

// ---- G-WAN/C ---------------------------------------------------------------
Expand Down
Binary file modified tests/benchmark/abc
Binary file not shown.

0 comments on commit 609a8bc

Please sign in to comment.