Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

web_windows.go 464B

1234567891011121314151617181920
  1. // +build windows
  2. // Copyright 2016 The Gitea Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package cmd
  6. import (
  7. "net/http"
  8. )
  9. func runHTTP(listenAddr string, m http.Handler) error {
  10. return http.ListenAndServe(listenAddr, m)
  11. }
  12. func runHTTPS(listenAddr, certFile, keyFile string, m http.Handler) error {
  13. return http.ListenAndServeTLS(listenAddr, certFile, keyFile, m)
  14. }