n0vad3v
5e033a8f72
Extract checkAllowedType function.
...
Minor Log text optimization.
2021-12-05 22:20:39 +08:00
BennyThink
67d40b4397
CI and minor fixes
...
* use GitHub Actions as CI
* bump versions
* Makefile and Dockerfile improvements
* upgrade logrus
2021-12-05 19:21:29 +08:00
BennyThink
7c65d5e213
stability enhancement
...
1. large dimension photos
2. GET /1.webp
3. dependabot
2021-12-04 17:25:26 +08:00
BennyThink
e9543522ae
avif support is almost complete
2021-12-04 17:25:26 +08:00
BennyThink
dbac67fe55
change webpEncoder signature for incoming refator,
...
auto update enchance: replace binary in place.
2021-12-04 17:25:12 +08:00
Nova Kwok
aa0af31808
Create dependabot.yml ( #79 )
2021-11-26 15:29:42 +08:00
Benny
c0208dea48
Merge pull request #77 from webp-sh/github_action_builder
2021-07-31 19:44:11 +08:00
BennyThink
66accb3fd9
add github action build
2021-07-31 18:21:09 +08:00
Benny
ba11f29fe0
go 1.16 requires go.sum, thus update .gitignore, add go.sum and update travis. ( #73 )
...
https://golang.org/doc/go1.16
Module-aware mode is enabled by default, regardless of whether a go.mod file is present in the current working directory or a parent directory. More precisely, the GO111MODULE environment variable now defaults to on. To switch to the previous behavior, set GO111MODULE to auto.
Build commands like go build and go test no longer modify go.mod and go.sum by default. Instead, they report an error if a module requirement or checksum needs to be added or updated (as if the -mod=readonly flag were used). Module requirements and sums may be adjusted with go mod tidy or go get.
2021-02-18 17:10:11 +08:00
Benny
428192275b
choose webp or png feature ( #70 )
...
* support webp_bigger header, add test cases
* fix test case
2021-02-12 16:13:13 +08:00
Benny
878a2ddd0c
remove spec ( #69 )
2021-02-01 17:00:37 +08:00
Benny
9329ac65fe
fix runtime.GOOS=="windows, add more test cases, bump to newer version of fiber and libwebp ( #68 )
...
* fix runtime.GOOS=="windows, add some test cases
test cases are still limited for flag
* update to latest fiber v2.4.0 & libwebp v1.2.0
manually test confirmed
2021-02-01 16:14:23 +08:00
Benny
f5e7ee5273
take advantage of build cache #66 ( #67 )
2020-12-26 22:12:33 +08:00
Benny
0c08f65be1
fix unsupported browser + proxyMode bug, return 400 for not allow files instead of 500 ( #64 )
...
unsupported browser will go for origin, while in proxyMode we don't have cache images.
resolve #61
2020-12-06 14:02:17 +08:00
Benny
37d8d8ba13
iOS 14 support, bump to 0.3.1 ( #63 )
...
Use `accept` header first, then `user-agent` header.
Add complete test case.
This should resolve part of #61
2020-12-05 16:42:18 +08:00
Benny
9136beb307
Merge pull request #62 from webp-sh/log_middleware
...
add logger middleware to show response time
2020-12-03 11:30:29 +08:00
BennyThink
2a6492f0df
add logger middleware to show response time
2020-12-03 10:34:24 +08:00
Nova Kwok
cedacd3997
Bump to 0.3.0 ( #60 )
2020-11-29 12:18:26 +08:00
Nova Kwok
9eda9ee799
Feature: Add Compression rate on header ( #59 )
...
* Add X-Compression-Rate on response header
* add test case for compression rate, change logging and other improvements
* move config to config.go, add header for safari and proxyMode, logging improvement
* update gitignore for remote-raw and coverage.txt
* Refine log level
2020-11-27 15:41:03 +08:00
Benny
1881ae83cc
Merge pull request #58 from webp-sh/url_decode_fix
...
url with url-encoded character fix
2020-11-25 11:34:01 +08:00
BennyThink
1056963bb2
fix one test case bug, remove one easy to fail test case,
...
improve test case stability by adding timeout to 60s
2020-11-24 22:57:34 +08:00
BennyThink
a67de53ae6
url with non-ascii fix, bump version
...
This commit has fixed issue reported in PR 57, add test case
2020-11-24 22:25:10 +08:00
Benny
08c333f3cd
Fiber v2, code format, typo,test case, go 1.15 and more ( #54 )
...
* upgrade to fiber v2
* code format
* remove redundant variables
* remove useless exportable variables/functions
* go mod replace
use our own mirror now.
* add test case for converter, use deferInit to make test more simple
* remove useless file and fix typo
* Makefile change
* upgrade to go 1.15
* remove wrong go test comments
* complete test case, coverage, coverage badge
* Fix version typo
* config struct fix
* add banner, show version, add server header, remove fiber startup message
Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2020-11-21 13:26:03 +08:00
Nova Kwok
989de32940
Update Golang to 1.14.7 ( #52 )
2020-08-07 10:55:23 +08:00
Nova Kwok
2d2df5571d
Feature: WebP Proxy ( #51 )
...
* feat-webp-proxy
* Fix panic on clear Cache, modified output.
* Optimize etag fetch logic
* Update README for new docs website.
* Bump version to 0.2.0.
2020-08-06 14:55:20 +08:00
Nova Kwok
36eb669031
Update iOS render policy and test case, bump version to 0.1.5 ( #50 )
...
Update iOS render policy and test case, bump version to 0.1.5.
2020-07-14 17:56:16 +08:00
n0vad3v
6abbc14a84
Bump version
2020-07-01 21:51:11 +08:00
Benny
07f2fc6969
IE and assert fix ( #49 )
...
* Add test case for IE, postman and curl
* Simplify goOrigin code
* use assert
2020-07-01 21:39:28 +08:00
Benny
8970e8cf52
TestGoOrigin instead of TestgoOrigin
2020-06-30 18:18:08 +08:00
Nova Kwok
cfe84bf67c
Try add Etag on response by nova
2020-06-30 18:18:02 +08:00
n0vad3v
99f36b35f7
Render origin image on MSIE
2020-06-30 16:12:35 +08:00
Nova Kwok
14f99bfba3
Merge pull request #44 from webp-sh/unit-test
...
Added Unit Test to Travis CI
2020-05-23 16:41:28 +08:00
n0vad3v
acf53d2bdb
Combine to Travis
2020-05-23 16:31:07 +08:00
Xian Li
e99e918e97
fix(Dockerfile): fix config.json PATH in Dockerfile ( #45 )
2020-05-23 12:40:48 +08:00
Benny~
6f8d978268
isSafari test case
2020-05-23 12:38:47 +08:00
Benny~
c26dfb90f3
Merge branch 'master' into unit-test
2020-05-23 12:15:22 +08:00
Xian Li
bfb34a8166
Merge pull request #42 from webp-sh/safari-ua
...
upgrade logrus and fix safari ua
2020-05-23 11:21:31 +08:00
Benny~
6f2ec5d73f
add test scripts
2020-05-23 09:54:06 +08:00
Benny~
3d92efaef1
encoder_test.go
2020-05-23 09:42:59 +08:00
Benny~
f150285f1c
helper_test.go
...
test command: go test -v helper_test.go helper.go -cover
2020-05-23 09:12:45 +08:00
Benny~
e902d2e5d2
fix logf, add unit test as an example
2020-05-23 01:05:02 +08:00
Benny
c0509bb50f
upgrade logrus and fix safari ua
2020-05-22 17:16:10 +08:00
Nova Kwok
acb020fb7a
Add another UA for original image ( #40 )
2020-05-12 17:44:02 +08:00
muzi
8784918f8e
Merge pull request #37 from mathieu-aubin/patch-1
...
Add systemd alias
2020-04-02 11:42:11 +08:00
Mathieu Aubin
3ec84d0ca5
init alias
...
Adds an alias for the service so webp-server.service becomes available for use after install
2020-04-01 19:21:29 -04:00
Nova Kwok
98650634a8
Merge pull request #36 from webp-sh/prefetch
...
Add prefetch elapsed time
2020-04-01 23:34:47 +08:00
muzi
e0e987007f
Add prefetch elapsed time
2020-04-01 08:42:59 +08:00
Benny
3d6618af70
Minify readme ( #35 )
...
* Minify README
* Move out related articles
* Add Docs
Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2020-03-21 11:28:26 +08:00
n0vad3v
5cc9bf2588
Update README.
...
Bump to 0.1.2.
2020-03-20 13:20:02 +08:00
Yini Xu
ceebddbd43
Fix typo in router and README.md ( #33 )
...
* Update README.md
fix: correct a typo
* Update router.go
fix: correct a typo
2020-03-19 18:39:00 +08:00