aboutsummaryrefslogtreecommitdiff
path: root/challange_http.go
diff options
context:
space:
mode:
Diffstat (limited to 'challange_http.go')
-rw-r--r--challange_http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/challange_http.go b/challange_http.go
index 30233bb..ee1708a 100644
--- a/challange_http.go
+++ b/challange_http.go
@@ -17,11 +17,11 @@ type httpChallenge struct {
Addr string
}
-func (c *httpChallenge) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+func (c httpChallenge) ServeHTTP(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, c.KeyAuthorization)
}
-func (c *httpChallenge) Solve() error {
+func (c httpChallenge) Solve() error {
done := make(chan bool)
l, err := net.Listen("tcp", c.Addr)
if err != nil {