KevinZønda
4d47c2afd7
docs: improve ambiguous comment in c.Stream
2023-05-04 15:27:54 +01:00
thinkerou
1e1f0b1e76
chore: support min go version 1.18 ( #3511 )
...
* chore: min go version 1.18
* fix build tag error
* remove build tag
* fix word
* remove any.go
* replace interface{} instead of any
2023-03-01 10:03:48 +08:00
Vladislav Dmitriyev
0c96a20209
Stop useless panicking in context and render ( #2150 )
...
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2023-02-12 10:01:33 +08:00
adrianiacobghiula
7cb151bb4c
fix(context): panic on NegotiateFormat - index out of range ( #3397 )
2023-01-16 22:50:07 +08:00
youngxhui
7d8fc1563b
update context.go Get/Set method use defer ( #3429 )
...
Using defer to unlock is more in line with go standards
2023-01-02 11:39:26 +08:00
Cookiery
cc367f9125
docs(context): #3369 modify the annotation about Context.Param() ( #3414 )
2022-12-01 13:15:31 +08:00
Qt
6150c488e7
remove deprecated of package io/ioutil ( #3395 )
2022-11-17 22:35:55 +08:00
lgbgbl
212267d671
fix: fix typo in comment ( #3371 )
2022-11-08 19:54:48 +08:00
Mohana sai krishna Kandula
45c758e2f9
chore(file): Creates a directory named path ( #3316 )
...
Co-authored-by: mohanak <mohanak@mkcl.org>
2022-10-16 09:45:08 +08:00
thinkerou
b04917c53e
chore: upgrade golangci-lint and fix golangci-lint error ( #3278 )
2022-08-15 21:38:20 +08:00
Jordan Day
6c3a1d7063
Small doc fix on Context's ClientIP() method. ( #3180 )
2022-06-09 10:08:49 +08:00
wei
f197a8bae0
feat(context): add ContextWithFallback feature flag ( #3166 ) ( #3172 )
...
Enable fallback Context.Deadline(), Context.Done(), Context.Err() and Context.Value()
2022-06-06 18:43:53 +08:00
thinkerou
4b68a5f12a
chore: update go.mod and remove space from copyright ( #3158 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-28 10:42:28 +08:00
Valentine Oragbakosi
ed03102ef0
[GIN-001] - Add TOML bining for gin ( #3081 )
...
Co-authored-by: GitstartHQ <gitstart@users.noreply.github.com>
2022-05-28 08:34:43 +08:00
Faisal Alam
e61cc06955
feat(context): return GIN Context from Value method ( #2825 )
2022-04-23 18:02:54 +08:00
ahuigo
6854212698
Fix: missing `sameSite` when do context.reset() ( #3123 )
2022-04-17 12:41:59 +08:00
thinkerou
2bde107686
test support go1.18 ( #2990 )
2022-03-21 09:43:17 +08:00
metal A-wing
8860527de6
feat attachment filename support utf8 ( #3071 )
2022-03-17 11:56:16 +08:00
Waynerv
580e7da6ee
Remove incorrect comments about context.Bind() and improve docs ( #3028 )
2022-01-20 22:33:35 +08:00
jincheng9
01363191be
fix: typo ( #3006 )
2022-01-02 14:04:07 +08:00
jincheng9
92a988d761
fix: description error ( #2988 )
...
* fix:typo
* fix: typo
* fix: wrong when wildcard follows named param
* fix: description error
* update author list
* fix:typo
* fix: description error
2021-12-18 19:40:47 +08:00
Notealot
0be805a675
TrustedProxies: Add default IPv6 support and refactor ( #2967 )
2021-12-03 14:49:16 +08:00
jincheng9
bc2417fc40
fix: description error ( #2968 )
2021-11-30 08:36:36 +08:00
jincheng9
ffb3b73430
fix: description error ( #2961 )
2021-11-26 16:38:10 +08:00
zero11-0203
6aee45608d
Fix grammar ( #2933 )
2021-11-11 08:07:55 +08:00
Notealot
2d3d6d2f13
Provide custom options of TrustedPlatform for another CDN services ( #2906 )
...
* refine TrustedPlatform and docs
* refactor for switch
* refactor switch to if statement
2021-10-24 08:34:03 +08:00
Zhu Xi
3fe928994b
Update the code logic for latestNode in tree.go ( #2897 )
2021-10-23 11:58:57 +08:00
Egor Seredin
5929d52171
ClientIP: check every proxy for trustiness ( #2844 )
2021-10-09 08:38:51 +08:00
Notealot
39181329de
Tidy: Complete TrustedProxies feature ( #2887 )
2021-10-06 09:37:25 +08:00
joeADSP
97b3c0d88a
Fix grammatical and spelling errors in context.go ( #2883 )
2021-09-29 07:35:06 +08:00
Matthieu MOREL
71f7087097
golangci(lint) : more linters ( #2870 )
2021-09-21 15:22:21 +08:00
filikos
deb83b6365
gin.Context.SetParam shortcut for e2e tests ( #2848 )
...
* Added SetParam shortcut for e2e tests, added SetParam test
* Adjusted naming and formatting
* fixed typo
2021-09-07 10:08:45 +08:00
Alexander Melentyev
dfc25f91e0
Add short func with named return ( #2837 )
2021-08-22 09:29:51 +08:00
wei
9a575a4c05
fallback Context.Deadline() Context.Done() Context.Err() to Context.Request.Context() ( #2769 )
...
* fallback Context.Deadline() Context.Done() Context.Err() to Context.Request.Context()
* update comments wording
2021-08-01 00:46:53 +08:00
ziheng
c7a28f8532
use bit shift operation instead of division ( #2776 )
2021-07-06 16:37:14 +08:00
Lanco
372cc4a010
Fix typo ( #2772 )
2021-07-02 09:58:43 +08:00
wei
7834a03e84
gin.Context with fallback value from gin.Context.Request.Context() ( #2751 )
...
* Update tree.go (#2659 )
delete more "()"
* updated comments for Get function for params (#2756 )
* ci: add github action workflows (#2596 )
* ci: add github action workflows
* test: fixed the TestUnixSocket test on windows (#20 )
* ci: add github action workflows (#18 )
* Remove .travis.yml
* ci: replace GITTER_ROOM_ID and upload coverage every time you go test
* ci: update coverage using codecov/codecov-action@v1
* Merge branch 'master' into github-actions
* repo: replace travis ci to github actions
* ci: add go version 1.16
* fix: go install requires a specific version
* chore(ci): remove go 1.12 support
* chore(ci): remove os windows-latest
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Setting trusted platform using an enum-like (#2739 )
* gin.Context with fallback value from c.Request.Context()
* add test case
Co-authored-by: youzeliang <youzel@126.com>
Co-authored-by: Ashwani <ashwanisharma686@gmail.com>
Co-authored-by: Jeff <laojianzi1994@gmail.com>
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2021-06-24 16:33:14 +08:00
Alessandro (Ale) Segala
dd8a27c0b6
Setting trusted platform using an enum-like ( #2739 )
2021-06-24 08:58:10 +08:00
Alessandro (Ale) Segala
6703dea51c
Get client IP when using Cloudflare ( #2723 )
...
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-05-28 10:03:59 +08:00
tyltr
afb38396b5
optimize code ( #2722 )
...
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-22 13:17:19 +08:00
Xudong Cai
03e5e05ae0
fix: data race with trustedCIDRs ( #2674 ) ( #2675 )
...
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-04-09 00:27:34 +08:00
Manu MA
bfc8ca285e
feat(engine): add trustedproxies and remoteIP ( #2632 )
...
Co-authored-by: Søren L. Hansen <soren@linux2go.dk>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Javier Provecho Fernandez <javiertitan@gmail.com>
2021-04-06 11:37:25 +08:00
An Xiao (Luffy)
7742ff50e0
Fix typos in context.go ( #2551 )
2020-11-11 09:41:35 +08:00
eudore
540b1eff70
update content-disposition header to MIME-style ( #2512 )
2020-09-25 09:45:17 +08:00
John Bampton
3100b7cb05
Fix spelling ( #2498 )
2020-09-14 10:40:20 +08:00
kaiiak
0304ee96ed
Add GetUint and GetUint64 method on gin.context ( #2487 )
2020-09-01 09:33:54 +08:00
Florian Polster
815e1ce281
Prevent panic in Context.GetQuery() when there is no Request ( #2412 )
...
Co-authored-by: thinkerou <thinkerou@gmail.com>
2020-08-08 20:32:19 +08:00
thinkerou
1d5b9badd9
chore: rename getQueryCache/getFormCache to initQueryCache/initFormCache ( #2375 )
2020-05-14 11:35:14 +08:00
Bo-Yi Wu
d17270dd90
Sync route tree to httprouter latest code ( #2368 )
...
* update tree
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update countParams
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix testing
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* udpate
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix testing
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor gin context
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* add fullPath
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* chore: refactor
* remove unused code
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* remove varsCount
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-05-10 13:22:25 +08:00
thinkerou
6ac7f194c4
chore: update some code style ( #2356 )
2020-05-05 13:55:57 +08:00