Skip to content

Commit

Permalink
docs: update documentation of accepted /quitquitquit HTTP methods (#2255
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wolfpeyton authored Jun 17, 2024
1 parent 848e1ea commit 757c08f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ See the [documentation on pprof][pprof] for details on how to use the
profiler.
When --quitquitquit is set, the admin server adds an endpoint at
/quitquitquit. The admin server exits gracefully when it receives a POST
/quitquitquit. The admin server exits gracefully when it receives a GET or POST
request at /quitquitquit.
[pprof]: https://pkg.go.dev/net/http/pprof.
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Localhost Admin Server
profiler at https://pkg.go.dev/net/http/pprof.
When --quitquitquit is set, the admin server adds an endpoint at
/quitquitquit. The admin server exits gracefully when it receives a POST
/quitquitquit. The admin server exits gracefully when it receives a GET or POST
request at /quitquitquit.
Debug logging
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ type Config struct {
// Debug enables a debug handler on localhost.
Debug bool
// QuitQuitQuit enables a handler that will shut the Proxy down upon
// receiving a POST request.
// receiving a GET or POST request.
QuitQuitQuit bool
// DebugLogs enables debug level logging.
DebugLogs bool
Expand Down

0 comments on commit 757c08f

Please sign in to comment.