Skip to content

Commit 8c199fb

Browse files
committed
Code Formatting
1 parent 1636fa1 commit 8c199fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ func BasicAuth(h httprouter.Handle, user, pass []byte) httprouter.Handle {
256256
payload, err := base64.StdEncoding.DecodeString(auth[len(basicAuthPrefix):])
257257
if err == nil {
258258
pair := bytes.SplitN(payload, []byte(":"), 2)
259-
if len(pair) == 2 && bytes.Equal(pair[0], user) && bytes.Equal(pair[1], pass) {
259+
if len(pair) == 2 &&
260+
bytes.Equal(pair[0], user) &&
261+
bytes.Equal(pair[1], pass) {
262+
260263
// Delegate request to the given handle
261264
h(w, r, ps)
262265
return

0 commit comments

Comments
 (0)