We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 693a7fd commit f21c5ffCopy full SHA for f21c5ff
upstream/Dockerfile
@@ -1,4 +1,6 @@
1
-FROM golang:1.13.5 as bd
+# syntax=docker/dockerfile:1
2
+
3
+FROM golang:1.19.1 as bd
4
WORKDIR /github.com/layer5io/wasm-upstream
5
ADD . .
6
RUN GOPROXY=direct GOSUMDB=off go build -a -o /upstream .
upstream/go.mod
@@ -0,0 +1,3 @@
+module github.com/layer5io/wasm-filters/upstream
+go 1.19
upstream/main.go
@@ -2,15 +2,15 @@ package main
import (
"fmt"
- "io/ioutil"
+ "io"
"net/http"
7
)
8
9
var gldata = ""
10
11
func store(w http.ResponseWriter, req *http.Request) {
12
defer req.Body.Close()
13
- data, err := ioutil.ReadAll(req.Body)
+ data, err := io.ReadAll(req.Body)
14
if err != nil {
15
return
16
}
0 commit comments