Skip to content

Commit

Permalink
fix gofmt side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 26, 2024
1 parent 3a0312a commit f0ae125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions cmd/pebble-challtestsrv/httpone.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import "net/http"
//
// The POST body is expected to have two non-empty parameters:
// "token" - the HTTP-01 challenge token to add the mock HTTP-01 response under
//
// in the `/.well-known/acme-challenge/` path.
// in the `/.well-known/acme-challenge/` path.
//
// "content" - the key authorization value to return in the HTTP response.
//
Expand Down Expand Up @@ -42,8 +41,7 @@ func (srv *managementServer) addHTTP01(w http.ResponseWriter, r *http.Request) {
//
// The POST body is expected to have one non-empty parameter:
// "token" - the HTTP-01 challenge token to remove the mock HTTP-01 response
//
// from.
// from.
//
// A successful POST will write http.StatusOK to the client.
func (srv *managementServer) delHTTP01(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -73,12 +71,10 @@ func (srv *managementServer) delHTTP01(w http.ResponseWriter, r *http.Request) {
//
// The POST body is expected to have two non-empty parameters:
// "path" - the path that when matched in an HTTP request will return the
//
// redirect.
// redirect.
//
// "targetURL" - the URL that the client will be redirected to when making HTTP
//
// requests for the redirected path.
// requests for the redirected path.
//
// A successful POST will write http.StatusOK to the client.
func (srv *managementServer) addHTTPRedirect(w http.ResponseWriter, r *http.Request) {
Expand Down
6 changes: 2 additions & 4 deletions cmd/pebble-challtestsrv/mockdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import (
//
// The POST body is expected to have one parameter:
// "ip" - the string representation of an IPv4 address to use for all A queries
//
// that do not match more specific mocks.
// that do not match more specific mocks.
//
// Providing an empty string as the IP value will disable the default
// A responses.
Expand Down Expand Up @@ -44,8 +43,7 @@ func (srv *managementServer) setDefaultDNSIPv4(w http.ResponseWriter, r *http.Re
//
// The POST body is expected to have one parameter:
// "ip" - the string representation of an IPv6 address to use for all AAAA
//
// queries that do not match more specific mocks.
// queries that do not match more specific mocks.
//
// Providing an empty string as the IP value will disable the default
// A responses.
Expand Down

0 comments on commit f0ae125

Please sign in to comment.