Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 4.2.1-wip

## 4.2.0

- Added support for `https`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ See the Dart documentation of [SecurityContext.usePrivateKey](https://api.dart.d

```console
$ dhttpd --help
--headers=<headers> HTTP headers to apply to each response. Can be used multiple times. Format: header=value;header2=value
--headers=<headers> HTTP headers to apply to each response. Can be used multiple times. Format: header=value;header2=value
--host=<host> The hostname to listen on.
(defaults to "localhost")
-l, --list-files List the files in the directory if no index.html is present.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

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

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dhttpd
version: 4.2.0
version: 4.2.1-wip

description: A static HTTP file server for easy local hosting of a directory.
repository: https://github.com/kevmoo/dhttpd
Expand Down
4 changes: 2 additions & 2 deletions test/command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Future<void> _versionCheck() async {

Future<void> _readmeCheck(List<String> args) async {
final process = await _runApp(args);
final output = (await process.stdoutStream().join('\n')).trim();
final output = (await process.stdoutStream().join('\n')).trimRight();
await process.shouldExit(0);

final readme = File('README.md');
Expand All @@ -43,7 +43,7 @@ $output

expect(expected, r'''```console
$ dhttpd --help
--headers=<headers> HTTP headers to apply to each response. Can be used multiple times. Format: header=value;header2=value
--headers=<headers> HTTP headers to apply to each response. Can be used multiple times. Format: header=value;header2=value
--host=<host> The hostname to listen on.
(defaults to "localhost")
-l, --list-files List the files in the directory if no index.html is present.
Expand Down
Loading