Skip to content

Commit

Permalink
Updating after 2.0.0-rc.3 broke the module interface
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
  • Loading branch information
hairyhenderson committed Apr 22, 2020
1 parent b16ba82 commit 7d9b788
Show file tree
Hide file tree
Showing 6 changed files with 710 additions and 124 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to every request.
The simplest use could be in a Caddyfile like:

```
*:80
localhost
route {
teapot
Expand All @@ -17,10 +17,12 @@ route {
Then, when using a Caddy server with this module enabled:

```console
$ curl -I localhost/any/path
$ curl -I --http1.1 localhost/any/path
HTTP/1.1 418 I'm a teapot
Server: Caddy
Date: Sun, 01 Mar 2020 15:48:23 GMT
```

_(you could, of course use `curl --http2`, but the reason-phrase `I'm a teapot` won't display, and that's no fun!)_

See also the [`example/`](./example) folder for an example of usage.
2 changes: 1 addition & 1 deletion example/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*:8080
localhost

route {
teapot
Expand Down
2 changes: 1 addition & 1 deletion example/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/hairyhenderson/caddy-teapot-module/example
go 1.14

require (
github.com/caddyserver/caddy/v2 v2.0.0-beta.15
github.com/caddyserver/caddy/v2 v2.0.0-rc.3
github.com/hairyhenderson/caddy-teapot-module v0.0.1
)

Expand Down
Loading

0 comments on commit 7d9b788

Please # to comment.