Skip to content

Commit

Permalink
Force content type on doT generated html strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed May 22, 2014
1 parent 9a36709 commit c3555ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -132,6 +132,12 @@ Usage
##### Seriously ##### Seriously
Those are legitimate requirements. If you use old versions of Node.js or Redis that may come with your system package manager then you will have problems. Follow the linked instructions to get the last stable versions. Those are legitimate requirements. If you use old versions of Node.js or Redis that may come with your system package manager then you will have problems. Follow the linked instructions to get the last stable versions.



[**Redis security warning**](http://redis.io/topics/security): be sure firewall access to redis - an easy way is to
include `bind 127.0.0.1` in your `redis.conf` file. Also it's a good idea to learn about and understand software that
you are using - a good place to start with redis is [data persistence](http://redis.io/topics/persistence).


#### 0) Setting up coin daemon #### 0) Setting up coin daemon
Follow the build/install instructions for your coin daemon. Your coin.conf file should end up looking something like this: Follow the build/install instructions for your coin daemon. Your coin.conf file should end up looking something like this:
``` ```
Expand All @@ -152,8 +158,6 @@ a good pool operator. For starters be sure to read:


#### 1) Downloading & Installing #### 1) Downloading & Installing


[**Redis security warning**](http://redis.io/topics/security): be sure firewall access to redis - an easy way is to include `bind 127.0.0.1` in your `redis.conf` file

Clone the repository and run `npm update` for all the dependencies to be installed: Clone the repository and run `npm update` for all the dependencies to be installed:


```bash ```bash
Expand Down
2 changes: 1 addition & 1 deletion init.js
Expand Up @@ -223,7 +223,7 @@ var spawnPoolWorkers = function(){
worker.type = 'pool'; worker.type = 'pool';
poolWorkers[forkId] = worker; poolWorkers[forkId] = worker;
worker.on('exit', function(code, signal){ worker.on('exit', function(code, signal){
logger.error('Master', 'PoolSpanwer', 'Fork ' + forkId + ' died, spawning replacement worker...'); logger.error('Master', 'PoolSpawner', 'Fork ' + forkId + ' died, spawning replacement worker...');
setTimeout(function(){ setTimeout(function(){
createPoolWorker(forkId); createPoolWorker(forkId);
}, 2000); }, 2000);
Expand Down
1 change: 1 addition & 0 deletions libs/website.js
Expand Up @@ -218,6 +218,7 @@ module.exports = function(logger){
var route = function(req, res, next){ var route = function(req, res, next){
var pageId = req.params.page || ''; var pageId = req.params.page || '';
if (pageId in indexesProcessed){ if (pageId in indexesProcessed){
res.header('Content-Type', 'text/html');
res.end(indexesProcessed[pageId]); res.end(indexesProcessed[pageId]);
} }
else else
Expand Down

0 comments on commit c3555ec

Please sign in to comment.