Skip to content

Commit

Permalink
Improve docs of HTTP target format comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomás Senart committed Jan 4, 2019
1 parent 7b55bde commit 65db074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ X-Account-ID: 99
```

###### Add comments to the targets
Lines starting with # are ignored.

Lines starting with `#` are ignored.

```
# get a dragon ball
Expand Down
4 changes: 2 additions & 2 deletions lib/targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func TestNewHTTPTargeter(t *testing.T) {
SUBSCRIBE http://foobar.org/sub
# GET TEST
# This is a comment. Lines starting with hash pound are ignored.
GET http://:6060/
X-Header: 1
X-Header: 2`,
Expand Down Expand Up @@ -365,7 +365,7 @@ func TestNewHTTPTargeter(t *testing.T) {
Body: []byte{},
Header: http.Header{"Content-Type": []string{"text/plain"}},
},
{
{ // Preceeding comment is ignored and target is parsed correctly.
Method: "GET",
URL: "http://:6060/",
Body: []byte{},
Expand Down

0 comments on commit 65db074

Please sign in to comment.