Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ManuelKiessling/NodeBeginnerBook
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelkiessling committed Feb 5, 2012
2 parents 9a2cd29 + 52e7e94 commit 9f7a974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/application/requestHandlers.js
Expand Up @@ -36,7 +36,7 @@ function upload(response, request) {
* Some systems [Windows] raise an error when you attempt to rename new file into one that already exists.
* This call deletes the previous .PNG image prior to renaming the new one in its place.
*/
fs.unlinkSync("/tmp/test.png"); .
fs.unlinkSync("/tmp/test.png");
fs.renameSync(files.upload.path, "/tmp/test.png");
response.writeHead(200, {"Content-Type": "text/html"});
response.write("received image:<br/>");
Expand Down

0 comments on commit 9f7a974

Please sign in to comment.