Use a temp file instead of io.ReadAll to avoid buffering the entire Unsplash image in RAM, which could cause OOM with large images or high maxsize configuration. |
||
|---|---|---|
| .. | ||
| proxy.go | ||
| unsplash.go | ||
Use a temp file instead of io.ReadAll to avoid buffering the entire Unsplash image in RAM, which could cause OOM with large images or high maxsize configuration. |
||
|---|---|---|
| .. | ||
| proxy.go | ||
| unsplash.go | ||