Skip to content

Commit

Permalink
Merge branch 'release/0.8.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Feb 15, 2019
2 parents cf42e98 + d96a96c commit 29dc716
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 83 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [0.8.8] - 2019-02-15
### Changed
* Return 204 No Content when user gets /favicon.ico
* Update dependencies

## [0.8.7] - 2019-02-06
### Changed
* Allow cross-origin
Expand Down Expand Up @@ -125,7 +130,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
* Docker automated build on Docker Hub
* Support HTTPS

[Unreleased]: https://github.com/nwtgck/piping-server/compare/v0.8.7...HEAD
[Unreleased]: https://github.com/nwtgck/piping-server/compare/v0.8.8...HEAD
[0.8.8]: https://github.com/nwtgck/piping-seraver/compare/v0.8.7...v0.8.8
[0.8.7]: https://github.com/nwtgck/piping-seraver/compare/v0.8.6...v0.8.7
[0.8.6]: https://github.com/nwtgck/piping-seraver/compare/v0.8.5...v0.8.6
[0.8.5]: https://github.com/nwtgck/piping-seraver/compare/v0.8.4...v0.8.5
Expand Down
169 changes: 109 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "piping-server",
"version": "0.8.7",
"version": "0.8.8",
"description": "Streaming Data Transfer Server over HTTP/HTTPS",
"bin": {
"piping-server": "dist/src/index.js"
Expand Down Expand Up @@ -48,6 +48,6 @@
},
"dependencies": {
"multiparty": "^4.2.1",
"yargs": "^12.0.2"
"yargs": "^13.1.0"
}
}
8 changes: 7 additions & 1 deletion src/piping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function nanOrElse<T>(a: number, b: number): number {
const NAME_TO_RESERVED_PATH = {
index: "/",
version: "/version",
help: "/help"
help: "/help",
faviconIco: "/favicon.ico"
};

const indexPage: string =
Expand Down Expand Up @@ -255,6 +256,11 @@ export class Server {
const url = `${scheme}://${hostname}`;
res.end(generateHelpPage(url));
break;
case NAME_TO_RESERVED_PATH.faviconIco:
// (from: https://stackoverflow.com/a/35408810/2885946)
res.writeHead(204);
res.end();
break;
default:
// Handle a receiver
this.handleReceiver(req, res, reqPath);
Expand Down
Loading

0 comments on commit 29dc716

Please sign in to comment.