From af0fd0cfe244e68a16128ea2ddd095e9129b1e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=A9=8B=20=E6=8B=93=E4=B9=9F?= Date: Thu, 12 Oct 2023 16:22:13 +0900 Subject: [PATCH 1/3] handle 304 --- webp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webp.go b/webp.go index 9ae0a7c..6e8109f 100644 --- a/webp.go +++ b/webp.go @@ -31,7 +31,7 @@ func doWebp(req *http.Request) (*http.Response, error) { log.Println(err) return nil, err } - if orgRes.StatusCode != 200 { + if orgRes.StatusCode != 200 && orgRes.StatusCode != 304 { log.Println(orgRes.Status) return nil, err } From 8af201d56dc831bc46ce230a17d2ed4c56235abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=A9=8B=20=E6=8B=93=E4=B9=9F?= Date: Thu, 12 Oct 2023 16:23:36 +0900 Subject: [PATCH 2/3] fukkatsu --- .github/workflows/build_webp.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/build_webp.yaml diff --git a/.github/workflows/build_webp.yaml b/.github/workflows/build_webp.yaml new file mode 100644 index 0000000..2214f1f --- /dev/null +++ b/.github/workflows/build_webp.yaml @@ -0,0 +1,12 @@ +name: "build" + +on: + workflow_dispatch: + + +jobs: + build: + uses: takutakahashi/github-actions/.github/workflows/ghcr.yaml@main + with: + path: . + image: takutakahashi/oyaki-webp:${{ github.sha }} From 566dbf6d170cab1c6c4ce8c30f14ba41c5b08248 Mon Sep 17 00:00:00 2001 From: Takuya TAKAHASHI <38676393+takutakahashi@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:56:10 +0900 Subject: [PATCH 3/3] Delete .github/workflows/build_webp.yaml --- .github/workflows/build_webp.yaml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .github/workflows/build_webp.yaml diff --git a/.github/workflows/build_webp.yaml b/.github/workflows/build_webp.yaml deleted file mode 100644 index 2214f1f..0000000 --- a/.github/workflows/build_webp.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: "build" - -on: - workflow_dispatch: - - -jobs: - build: - uses: takutakahashi/github-actions/.github/workflows/ghcr.yaml@main - with: - path: . - image: takutakahashi/oyaki-webp:${{ github.sha }}