Skip to content

Commit

Permalink
Merge branch 'release/1.8.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Dec 11, 2021
2 parents dcecb30 + 4032ace commit fd67bd9
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 23 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

/node_modules
/dist
/demo_images
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.1
uses: actions/setup-node@v2.5.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
push: true
tags: nwtgck/piping-server:develop
2 changes: 1 addition & 1 deletion .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
push: true
tags: nwtgck/piping-server:latest,nwtgck/piping-server:${{ steps.latest_tag.outputs.latest_tag }}
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]

## [1.8.1] - 2021-12-11
### Changed
* Update dependencies
* Log HTTP version

## [1.8.0] - 2021-11-21
### Changed
* Update dependencies
Expand Down Expand Up @@ -364,7 +369,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/v1.8.0...HEAD
[Unreleased]: https://github.com/nwtgck/piping-server/compare/v1.8.1...HEAD
[1.8.1]: https://github.com/nwtgck/piping-server/compare/v1.8.0...v1.8.1
[1.8.0]: https://github.com/nwtgck/piping-server/compare/v1.7.0...v1.8.0
[1.7.0]: https://github.com/nwtgck/piping-server/compare/v1.6.0...v1.7.0
[1.6.0]: https://github.com/nwtgck/piping-server/compare/v1.5.0...v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.17.6-alpine
FROM node:14.18.2-alpine

LABEL maintainer="Ryo Ota <[email protected]>"

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ You can transfer to multiple receivers. In the demo below, query parameter `?n=3
Here are public Piping Servers.

* <https://ppng.io>
* <https://piping.glitch.me>
* <https://piping-47q675ro2guv.runkit.sh>
* <https://piping.nwtgck.repl.co>
* <https://ppng.herokuapp.com>

* <https://piping.glitch.me>
* <https://piping-47q675ro2guv.runkit.sh>

## Self-host on Docker

Expand Down
25 changes: 12 additions & 13 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "piping-server",
"version": "1.8.0",
"version": "1.8.1",
"description": "Streaming Data Transfer Server over HTTP/HTTPS",
"bin": {
"piping-server": "dist/src/index.js"
Expand Down
2 changes: 1 addition & 1 deletion src/piping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class Server {
const reqUrl = new URL(req.url ?? "", "a:///");
// Get path name
const reqPath = reqUrl.pathname;
this.params.logger?.info(`${req.method} ${req.url}`);
this.params.logger?.info(`${req.method} ${req.url} HTTP/${req.httpVersion}`);

if (isReservedPath(reqPath) && (req.method === "GET" || req.method === "HEAD")) {
this.handleReservedPath(useHttps, req, res, reqPath, reqUrl);
Expand Down

0 comments on commit fd67bd9

Please sign in to comment.