Permalink
Browse files

bump

  • Loading branch information...
Jeremy Bornstein
Jeremy Bornstein committed Mar 11, 2012
1 parent ad3870a commit 3135f473f5d789ef55a562b08bf8255dcd4586b2
Showing with 9 additions and 9 deletions.
  1. +7 −7 bastard.js
  2. +1 −1 package.json
  3. +1 −1 start.js
View
@@ -679,7 +679,7 @@ function Bastard (config) {
'Content-Type': contentType,
'Vary': 'Accept-Encoding',
'Cache-Control': "max-age=" + maxAgeInSeconds,
- 'Server': 'bastard/0.6.7'
+ 'Server': 'bastard/0.6.8'
};
if (encoding) responseHeaders['Content-Encoding'] = encoding;
if (modificationTime) responseHeaders['Last-Modified'] = modificationTime;
@@ -798,7 +798,7 @@ function Bastard (config) {
if (errorHandler) {
errorHandler (response, errorCode, errorMessage);
} else {
- response.writeHead (errorCode, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.6.7'});
+ response.writeHead (errorCode, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.6.8'});
response.end (errorMessage, 'utf8');
}
return;
@@ -811,15 +811,15 @@ function Bastard (config) {
if (errorHandler) {
errorHandler (response, 404, errorMessage);
} else {
- response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.6.7'});
+ response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.6.8'});
response.end (errorMessage, 'utf8');
}
return;
}
var modificationTime = cacheRecordParam.modified;
if (ifModifiedSince && modificationTime && modificationTime <= ifModifiedSince) {
- response.writeHead (304, {'Server': 'bastard/0.6.7'});
+ response.writeHead (304, {'Server': 'bastard/0.6.8'});
response.end ();
} else {
if (headOnly) {
@@ -830,7 +830,7 @@ function Bastard (config) {
if (errorHandler) {
errorHandler (response, 404, errorMessage);
} else {
- response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.6.7'});
+ response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.6.8'});
response.end (errorMessage, 'utf8');
}
} else {
@@ -870,7 +870,7 @@ function Bastard (config) {
}
function serveFromCacheRecord (cacheRecordParam) {
- response.writeHead (200, {'Content-Type': 'text/plain', 'Server': 'bastard/0.6.7'});
+ response.writeHead (200, {'Content-Type': 'text/plain', 'Server': 'bastard/0.6.8'});
response.end (errorMessage, 'utf8');
}
@@ -895,7 +895,7 @@ function Bastard (config) {
function displayCache (response) {
- response.writeHead (404, {'Content-Type': 'text/html; charset=utf-8', 'Server': 'bastard/0.6.7'});
+ response.writeHead (404, {'Content-Type': 'text/html; charset=utf-8', 'Server': 'bastard/0.6.8'});
response.write ('<html><body>', 'utf8');
for (var cacheKey in cacheData) {
response.write ('<h1>' + cacheKey + '</h1>', 'utf8');
View
@@ -1,6 +1,6 @@
{
"name": "bastard",
- "version": "0.6.7",
+ "version": "0.6.8",
"description": "A webserver for static files that does things right.",
"keywords": "webserver, fingerprint, static",
"homepage": "http://jeremy.org/bastard/",
View
@@ -63,7 +63,7 @@ function startBastard () {
if (!handled) {
console.warn ("Request not handled by bastard: " + request.method + " " + request.url);
response.writeHead (404, {
- 'Server': 'bastard/0.6.7',
+ 'Server': 'bastard/0.6.8',
'Content-Type': 'text/plain; charset=utf-8'
});
response.end ("Not found.");

0 comments on commit 3135f47

Please sign in to comment.