Feat: card_mark repo
This commit is contained in:
		
							
								
								
									
										8
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
									
									
									
									
								
							| @@ -23,10 +23,10 @@ func init() { | ||||
| func ListenToRequests(port string) *http.Server { | ||||
| 	mux := http.NewServeMux() | ||||
| 	server := &http.Server{ | ||||
| 		Handler:      handlers.LogRequests(handlers.GetSession(mux)), | ||||
| 		Addr:         ":" + port, | ||||
| 		ReadTimeout:  time.Second * 5, // TODO: to cfg | ||||
| 		WriteTimeout: 0,               // sse streaming | ||||
| 		Handler: handlers.LogRequests(handlers.GetSession(mux)), | ||||
| 		Addr:    ":" + port, | ||||
| 		// ReadTimeout:  time.Second * 5, // does this timeout conflict with sse connection? | ||||
| 		WriteTimeout: 0, // sse streaming | ||||
| 	} | ||||
| 	fs := http.FileServer(http.Dir("assets/")) | ||||
| 	mux.Handle("GET /assets/", http.StripPrefix("/assets/", fs)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder