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

add Context.ReadMultipartRelated as requested at #1787

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-03-02 03:49:15 +02:00
parent 43c85d0c85
commit f28203f1be
3 changed files with 174 additions and 21 deletions

View File

@@ -10,7 +10,6 @@ import (
"fmt"
"io"
"net/http"
"runtime"
"time"
"github.com/kataras/iris/v12/core/netutil"
@@ -28,13 +27,8 @@ func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
addr = h.Supervisor.Server.Addr
}
listeningURI := netutil.ResolveURL(guessScheme, addr)
interruptkey := "CTRL"
if runtime.GOOS == "darwin" {
interruptkey = "CMD"
}
_, _ = fmt.Fprintf(w, "Now listening on: %s\nApplication started. Press %s+C to shut down.\n",
listeningURI, interruptkey)
_, _ = fmt.Fprintf(w, "Now listening on: %s\nApplication started. Press CTRL/CMD+C to shut down.\n",
listeningURI)
}
}