1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-23 11:56:00 +00:00

Release version 12.2.0-beta2

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-05-09 03:01:34 +03:00
parent d989044054
commit 02077a01fa
9 changed files with 88 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ import (
)
// Version is the current version of the Iris Web Framework.
const Version = "12.2.0-beta1"
const Version = "12.2.0-beta2"
// Byte unit helpers.
const (
@@ -146,7 +146,7 @@ func Default() *Application {
app.logger.Debugf(`Log level set to "debug"`)
// Register the accesslog middleware.
logFile, err := os.OpenFile("./access.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600)
logFile, err := os.OpenFile("./access.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600)
if err == nil {
// Close the file on shutdown.
app.ConfigureHost(func(su *Supervisor) {
@@ -945,7 +945,8 @@ func TLS(addr string, certFileOrContents, keyFileOrContents string, hostConfigs
func AutoTLS(
addr string,
domain string, email string,
hostConfigs ...host.Configurator) Runner {
hostConfigs ...host.Configurator,
) Runner {
return func(app *Application) error {
return app.NewHost(&http.Server{Addr: addr}).
Configure(hostConfigs...).