gin-contrib / cache

Gin middleware/handler to enable Cache
https://gin-gonic.github.io/gin
MIT License
365 stars 95 forks source link

wrong cached result when a cached file's size is more than 32768 #66

Open OliverZou opened 4 years ago

OliverZou commented 4 years ago

the append result "data" is now using the same as param input "data". when a cached file which size is more than 32768 there are more than one Write() invoked the cached "data" will be changed when next Write() arrived,as []byte in golang is a ref type

image

OliverZou commented 4 years ago

same as pull requset #63

appleboy commented 4 years ago

build fail?

thinkerou commented 4 years ago

build fail?

code style