tnothy

Results 3 comments of tnothy

I believe what you need is available via maxAge param in the SetCookie method. `func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool)` [source](https://github.com/gin-gonic/gin/blob/master/context.go#L871)

I believe the invalid throttling is related to [this line](https://github.com/schollz/croc/blob/677f44da6d19c3069f871ebbcfef227295b21bf4/src/croc/croc.go#L229) ` rt = rate.Every(time.Second / (4 * time.Duration(uploadLimit))) ` After removing the 4 * part, the upload speed seems to...