mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Fix typo in router and README.md (#33)
* Update README.md fix: correct a typo * Update router.go fix: correct a typo
This commit is contained in:
parent
3f7f7a5cf2
commit
ceebddbd43
@ -77,7 +77,7 @@ By default, it will utilize all your CPU cores.
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### dump systemd service file
|
#### dump systemd service file
|
||||||
The standard systemd service file will show on your screen. You many want to use `>` to redirect to a file.
|
The standard systemd service file will show on your screen. You may want to use `>` to redirect to a file.
|
||||||
|
|
||||||
```
|
```
|
||||||
./webp-server -dump-systemd
|
./webp-server -dump-systemd
|
||||||
|
@ -22,7 +22,7 @@ func Convert(ImgPath string, ExhaustPath string, AllowedTypes []string, QUALITY
|
|||||||
UA := c.Get("User-Agent")
|
UA := c.Get("User-Agent")
|
||||||
if strings.Contains(UA, "Safari") && !strings.Contains(UA, "Chrome") &&
|
if strings.Contains(UA, "Safari") && !strings.Contains(UA, "Chrome") &&
|
||||||
!strings.Contains(UA, "Firefox") {
|
!strings.Contains(UA, "Firefox") {
|
||||||
log.Info("A Safari use has arrived...")
|
log.Info("A Safari user has arrived...")
|
||||||
c.SendFile(RawImageAbs)
|
c.SendFile(RawImageAbs)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user