Skip to content

Commit

Permalink
cont
Browse files Browse the repository at this point in the history
  • Loading branch information
alcalbg committed Nov 19, 2021
1 parent fc9fd7b commit 09d43df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.15
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: 1.17
id: go

- name: Check out code into the Go module directory
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -102,7 +102,7 @@ func LinkpreviewProxyHandler(w http.ResponseWriter, r *http.Request) {
defer resp.Body.Close()

cr := CachedResponse{}
cr.Body, err = io.ReadAll(resp.Body)
cr.Body, err = ioutil.ReadAll(resp.Body)
cr.Status = resp.StatusCode
if err != nil {
http.Error(w, "Server Error", http.StatusInternalServerError)
Expand Down

0 comments on commit 09d43df

Please sign in to comment.