Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Bornstein committed Jan 29, 2012
1 parent df189ad commit 626b5ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions bastard.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ function Bastard (config) {
'Content-Type': contentType,
'Vary': 'Accept-Encoding',
'Cache-Control': "max-age=" + maxAgeInSeconds,
'Server': 'bastard/0.5.10'
'Server': 'bastard/0.5.11'
};
if (encoding) responseHeaders['Content-Encoding'] = encoding;
if (modificationTime) responseHeaders['Last-Modified'] = modificationTime;
Expand Down Expand Up @@ -685,7 +685,7 @@ function Bastard (config) {
if (errorHandler) {
errorHandler (response, errorCode, errorMessage);
} else {
response.writeHead (errorCode, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.5.10'});
response.writeHead (errorCode, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.5.11'});
response.end (errorMessage, 'utf8');
}
return;
Expand All @@ -698,15 +698,15 @@ function Bastard (config) {
if (errorHandler) {
errorHandler (response, 404, errorMessage);
} else {
response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.5.10'});
response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.5.11'});
response.end (errorMessage, 'utf8');
}
return;
}

var modificationTime = cacheRecordParam.modified;
if (ifModifiedSince && modificationTime && modificationTime <= ifModifiedSince) {
response.writeHead (304, {'Server': 'bastard/0.5.10'});
response.writeHead (304, {'Server': 'bastard/0.5.11'});
response.end ();
} else {
if (headOnly) {
Expand All @@ -717,7 +717,7 @@ function Bastard (config) {
if (errorHandler) {
errorHandler (response, 404, errorMessage);
} else {
response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.5.10'});
response.writeHead (404, {'Content-Type': 'text/plain; charset=utf-8', 'Server': 'bastard/0.5.11'});
response.end (errorMessage, 'utf8');
}
} else {
Expand Down Expand Up @@ -757,7 +757,7 @@ function Bastard (config) {
}

function serveFromCacheRecord (cacheRecordParam) {
response.writeHead (200, {'Content-Type': 'text/plain', 'Server': 'bastard/0.5.10'});
response.writeHead (200, {'Content-Type': 'text/plain', 'Server': 'bastard/0.5.11'});
response.end (errorMessage, 'utf8');
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bastard",
"version": "0.5.10",
"version": "0.5.11",
"description": "A webserver for static files that does things right.",
"keywords": "webserver, fingerprint, static",
"homepage": "http://jeremy.org/bastard/",
Expand Down
2 changes: 1 addition & 1 deletion start.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function startBastard () {
if (!handled) {
console.warn ("Request not handled by bastard: " + request.method + " " + request.url);
response.writeHead (404, {
'Server': 'bastard/0.5.10',
'Server': 'bastard/0.5.11',
'Content-Type': 'text/plain; charset=utf-8'
});
response.end ("Not found.");
Expand Down

0 comments on commit 626b5ec

Please sign in to comment.