Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bump

  • Loading branch information...
commit 3135f473f5d789ef55a562b08bf8255dcd4586b2 1 parent ad3870a
Jeremy Bornstein authored
Showing with 9 additions and 9 deletions.
  1. +7 −7 bastard.js
  2. +1 −1  package.json
  3. +1 −1  start.js
View
14 bastard.js
@@ -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,7 +811,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');
}
return;
@@ -819,7 +819,7 @@ function Bastard (config) {
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
2  package.json
@@ -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
2  start.js
@@ -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.");
Please sign in to comment.
Something went wrong with that request. Please try again.