fixes broken build. i'll go protect master now oops
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									de9fae295d
								
							
						
					
					
						commit
						9b839e9b97
					
				| @ -1,7 +1,6 @@ | |||||||
| package httpserver | package httpserver | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"fmt" |  | ||||||
| 	"net/http" | 	"net/http" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| @ -11,6 +10,5 @@ import ( | |||||||
| func (s *server) handlePanic() http.HandlerFunc { | func (s *server) handlePanic() http.HandlerFunc { | ||||||
| 	return func(w http.ResponseWriter, r *http.Request) { | 	return func(w http.ResponseWriter, r *http.Request) { | ||||||
| 		panic("y tho") | 		panic("y tho") | ||||||
| 		fmt.Fprintf(w, "hello world") |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
| @ -17,7 +17,7 @@ func (s *server) routes() { | |||||||
| 	// .ServeHTTP of the http.Handler to get its HandleFunc, viz:
 | 	// .ServeHTTP of the http.Handler to get its HandleFunc, viz:
 | ||||||
| 	s.router.HandleFunc( | 	s.router.HandleFunc( | ||||||
| 		"/login", | 		"/login", | ||||||
| 	    authMiddleware(s.handleLogin()).ServeHTTP | 		authMiddleware(s.handleLogin()).ServeHTTP, | ||||||
| 	).Methods("GET") | 	).Methods("GET") | ||||||
| 
 | 
 | ||||||
| 	s.router.HandleFunc( | 	s.router.HandleFunc( | ||||||
| @ -29,7 +29,7 @@ func (s *server) routes() { | |||||||
| 	// CHANGEME remove this
 | 	// CHANGEME remove this
 | ||||||
| 	s.router.HandleFunc( | 	s.router.HandleFunc( | ||||||
| 		"/panic", | 		"/panic", | ||||||
| 	    s.handlePanic() | 		s.handlePanic(), | ||||||
| 	).Methods("GET") | 	).Methods("GET") | ||||||
| 
 | 
 | ||||||
| 	// the Gorilla mux .Use() takes a http.Handler wrapper func, like
 | 	// the Gorilla mux .Use() takes a http.Handler wrapper func, like
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user