Skip to content

Commit

Permalink
Bump version to v0.3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Jul 1, 2024
1 parent 150136e commit a0d669d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
40 changes: 28 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,55 +10,68 @@ The format is based on [Keep a Changelog], and this project adheres to
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html

## [Unreleased]
## [0.3.7] - 2024-07-01

- Serve the `.ws` and `.sse` endpoints from any directory
### Added

- Added the `WEBSOCKET_ROOT` environment variable, which sets the root path to
use for all websocket connections made by the `.ws` user interface (thanks
[@maximthomas]).

### Changed

- The `.ws` and `.sse` endpoints are now served from every directory, not only
the root path.
- The websocket user interface served by `.ws` will now establish a websocket
connection to the directory it is served from, not only the root path.
- The websocket user interface now logs the URL that it connects to.

## [0.3.6] - 2023-10-31

- Add support for sending arbitrary headers in all responses
- Add support for sending arbitrary headers in all responses.

## [0.3.5] - 2023-03-07

- Update dependencies to patch some security vulnerabilites
- Update dependencies to patch some security vulnerabilites.

## [0.3.4] - 2022-12-23

### Fixed

- Fix rendering of the HTTP request line to match RFC-2616
- Fix rendering of the HTTP request line to match RFC-2616.

## [0.3.3] - 2022-07-11

### Fixed

- Prevent rendering empty header value along real header values
- Render all values for each header, not only the first
- Prevent rendering empty header value along real header values.
- Render all values for each header, not only the first.

## [0.3.2] - 2022-07-08

### Changed

- Headers are now displayed in alphabetical order (thanks [@marcofranssen])
- Headers are now displayed in alphabetical order (thanks [@marcofranssen]).

## [0.3.1] - 2021-09-12

### Added

- Add the `SEND_SERVER_HOSTNAME` environment variable, set to `false` to prevent the server from sending its hostname
- Add the `X-Send-Server-Hostname` request header
- Add the `SEND_SERVER_HOSTNAME` environment variable, set to `false` to prevent
the server from sending its hostname.
- Add the `X-Send-Server-Hostname` request header.

## [0.3.0] - 2021-08-16

### Added

- Add the `/.sse` route, which echoes the request using server-sent events
- Add the `/.sse` route, which echoes the request using server-sent events.

## [0.2.0] - 2021-06-03

### Added

- Add support for logging HTTP headers to stdout (thanks [@arulrajnet])
- Add support for logging HTTP headers to stdout (thanks [@arulrajnet]).

## [0.1.0] - 2020-04-20

Expand All @@ -74,11 +87,14 @@ The format is based on [Keep a Changelog], and this project adheres to
[0.3.2]: https://github.com/jmalloc/echo-server/releases/v0.3.2
[0.3.4]: https://github.com/jmalloc/echo-server/releases/v0.3.4
[0.3.5]: https://github.com/jmalloc/echo-server/releases/v0.3.5
[0.3.6]: https://github.com/jmalloc/echo-server/releases/v0.3.6
[0.3.7]: https://github.com/jmalloc/echo-server/releases/v0.3.7

<!-- outside contributors -->

[@arulrajnet]: https://github.com/arulrajnet
[@marcofranssen]: https://github.com/marcofranssen
[@maximthomas]: https://github.com/maximthomas

<!-- version template
## [0.0.1] - YYYY-MM-DD
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ SEND_HEADER_ACCESS_CONTROL_ALLOW_METHODS="*"
SEND_HEADER_ACCESS_CONTROL_ALLOW_HEADERS="*"
```

### WebSocket URL

Set the `WEBSOCKET_ROOT` environment variable to prefix all websocket
requests made by the `.ws` user interface with a specific path.

## Running the server

The examples below show a few different ways of running the server with the HTTP
Expand Down
1 change: 1 addition & 0 deletions cmd/echo-server/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package main is the executable for the echo server.
package main

import (
Expand Down

0 comments on commit a0d669d

Please sign in to comment.