Skip to content

Commit

Permalink
idk 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiiden committed Jan 30, 2025
1 parent 87e2340 commit fce0cab
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,13 +632,5 @@ func main() {

// Start the server
fmt.Println("Starting server on :8080")
// log.Fatal(http.ListenAndServe(":8080", corsHandler))
srv := &http.Server{
Addr: ":8080",
Handler: corsHandler,
ReadTimeout: 0,
WriteTimeout: 0,
IdleTimeout: 0,
}
log.Fatal(srv.ListenAndServe())
log.Fatal(http.ListenAndServe(":8080", corsHandler))
}

0 comments on commit fce0cab

Please sign in to comment.