Skip to content

Commit 7bac6b2

Browse files
authored
nit: fix readme help (#97)
1 parent d4b97c5 commit 7bac6b2

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 4.2.1-wip
2+
13
## 4.2.0
24

35
- Added support for `https`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ See the Dart documentation of [SecurityContext.usePrivateKey](https://api.dart.d
5454

5555
```console
5656
$ dhttpd --help
57-
--headers=<headers> HTTP headers to apply to each response. Can be used multiple times. Format: header=value;header2=value
57+
--headers=<headers> HTTP headers to apply to each response. Can be used multiple times. Format: header=value;header2=value
5858
--host=<host> The hostname to listen on.
5959
(defaults to "localhost")
6060
-l, --list-files List the files in the directory if no index.html is present.

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dhttpd
2-
version: 4.2.0
2+
version: 4.2.1-wip
33

44
description: A static HTTP file server for easy local hosting of a directory.
55
repository: https://github.com/kevmoo/dhttpd

test/command_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Future<void> _versionCheck() async {
2626

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

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

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

0 commit comments

Comments
 (0)