We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e57243c commit caafc31Copy full SHA for caafc31
1 file changed
src/stirling/testing/demo_apps/go_https/server/https_server.go
@@ -24,19 +24,13 @@ import (
24
"io"
25
"log"
26
"net/http"
27
-
28
- "golang.org/x/net/http2"
29
)
30
31
const (
32
httpPort = 50100
33
httpsPort = 50101
34
35
36
-// Import the http2 package to ensure golang.org/x/net exists within the binary's
37
-// buildinfo.
38
-var s http2.Server //nolint:unused
39
40
func basicHandler(w http.ResponseWriter, r *http.Request) {
41
w.Header().Add("Content-Type", "application/json")
42
_, err := io.WriteString(w, `{"status":"ok"}`)
0 commit comments