Cookie

Results 13 comments of Cookie

**context.handlers** comes from **value.handlers** (https://github.com/gin-gonic/gin/blob/master/gin.go#L614) **value.handlers** comes from **node.handlers** (https://github.com/gin-gonic/gin/blob/master/tree.go#L446) **node.handlers** was initialized in the func addRouter() https://github.com/gin-gonic/gin/blob/master/tree.go#L152 and the addRouter func is not concurrency-safe. IDK if you use reset()...

Hi @seal , You can use `r.StaticFS("/static", filesDir)` . Beacuse if you use "/", you don't get [api] file in the file system. So you can't use "/" to visit...

Hey folks, how should I get rid of these mistakes?

Please show code that can reproduce the issue

Hey @BenStigsen, That is the regular behaviour. Maybe you can take a look this question: https://stackoverflow.com/questions/27818587/httpget-401-status-code-followed-by-200-status-code If you don't want a redundant 401 response, maybe you can use other auth...

@rcollette @john8329 You can use router.UseRawPath = true router.UnescapePathValues = false a example: ``` package main import ( "fmt" "net/http" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.GET("/*request", func(c...

IDK how do you use the "gin-contrib/timeout". Could you perfect your problem?

I think you can create a timeout middleware. Reference: https://gist.github.com/montanaflynn/ef9e7b9cd21b355cfe8332b4f20163c1

https://stackoverflow.com/questions/65034019/how-to-add-regex-constraints-to-gin-frameworks-router Also, it was a duplicated question, you can learn other answers in the https://github.com/gin-gonic/gin/issues/229