From 8c199fb6259ffc1af525cc3ad52ee60ba8359669 Mon Sep 17 00:00:00 2001 From: Julien Schmidt Date: Tue, 21 Apr 2015 19:00:07 +0200 Subject: [PATCH] Code Formatting --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c87d5fcd..9875c700 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,10 @@ func BasicAuth(h httprouter.Handle, user, pass []byte) httprouter.Handle { payload, err := base64.StdEncoding.DecodeString(auth[len(basicAuthPrefix):]) if err == nil { pair := bytes.SplitN(payload, []byte(":"), 2) - if len(pair) == 2 && bytes.Equal(pair[0], user) && bytes.Equal(pair[1], pass) { + if len(pair) == 2 && + bytes.Equal(pair[0], user) && + bytes.Equal(pair[1], pass) { + // Delegate request to the given handle h(w, r, ps) return