mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	Removed my debug prints
This commit is contained in:
		
							parent
							
								
									e158cda057
								
							
						
					
					
						commit
						16bd63fc26
					
				@ -87,7 +87,6 @@ var (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func GetHtpasswdMatcher(filename, username, siteRoot string) (PasswordMatcher, error) {
 | 
					func GetHtpasswdMatcher(filename, username, siteRoot string) (PasswordMatcher, error) {
 | 
				
			||||||
	fmt.Printf("ZBZB joining '%s' and '%s' and trying to open\n", siteRoot, filename)
 | 
					 | 
				
			||||||
	filename = filepath.Join(siteRoot, filename)
 | 
						filename = filepath.Join(siteRoot, filename)
 | 
				
			||||||
	htpasswordsMu.Lock()
 | 
						htpasswordsMu.Lock()
 | 
				
			||||||
	if htpasswords == nil {
 | 
						if htpasswords == nil {
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,6 @@
 | 
				
			|||||||
package middleware
 | 
					package middleware
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"fmt"
 | 
					 | 
				
			||||||
	"net/http"
 | 
						"net/http"
 | 
				
			||||||
	"testing"
 | 
						"testing"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@ -26,7 +25,6 @@ func TestIndexfile(t *testing.T) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	for i, test := range tests {
 | 
						for i, test := range tests {
 | 
				
			||||||
		actualFilePath, actualBoolValue := IndexFile(test.rootDir, test.fpath, test.indexFiles)
 | 
							actualFilePath, actualBoolValue := IndexFile(test.rootDir, test.fpath, test.indexFiles)
 | 
				
			||||||
		fmt.Println("ZBZB IndexFile returned", actualFilePath, ",", actualBoolValue)
 | 
					 | 
				
			||||||
		if actualBoolValue == true && test.shouldErr {
 | 
							if actualBoolValue == true && test.shouldErr {
 | 
				
			||||||
			t.Errorf("Test %d didn't error, but it should have", i)
 | 
								t.Errorf("Test %d didn't error, but it should have", i)
 | 
				
			||||||
		} else if actualBoolValue != true && !test.shouldErr {
 | 
							} else if actualBoolValue != true && !test.shouldErr {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user