Fix: add mux use
This commit is contained in:
		
							
								
								
									
										1
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								main.go
									
									
									
									
									
								
							| @@ -11,6 +11,7 @@ import ( | |||||||
| func ListenToRequests(port string) error{ | func ListenToRequests(port string) error{ | ||||||
| 	mux := http.NewServeMux() | 	mux := http.NewServeMux() | ||||||
| 	server := &http.Server{ | 	server := &http.Server{ | ||||||
|  | 		Handler:      mux, | ||||||
| 		Addr:         port, | 		Addr:         port, | ||||||
| 		ReadTimeout:  time.Second * 5, | 		ReadTimeout:  time.Second * 5, | ||||||
| 		WriteTimeout: time.Second * 5, | 		WriteTimeout: time.Second * 5, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder