Commit Graph

1456 Commits

Author SHA1 Message Date
Notealot 84d927b8ad chore(docs): Bump to v1.7.7 (#2952)
* Perfect TrustedProxies feature

* some typo fix

* fix some typo

* bump to v1.7.6

* remove 'retract'

* Revert "remove 'retract'"

This reverts commit 3fc2ab44b3.

* Update CHANGELOG.md

* Bump to v1.7.7 preparations
2021-11-24 21:54:13 +08:00
Quentin ROYER 2d3572ae5c Update version.go (#2923) 2021-11-24 21:38:44 +08:00
Ibraheem Ahmed ae6f7a3047 fix tsr with mixed static and wildcard paths (#2924) 2021-11-24 21:38:44 +08:00
市民233 bb945cfa1c fix the misplacement of adding slashes (#2847) 2021-11-24 21:38:44 +08:00
Notealot a3f087277f Provide custom options of TrustedPlatform for another CDN services (#2906)
* refine TrustedPlatform and docs

* refactor for switch

* refactor switch to if statement
2021-11-24 21:38:44 +08:00
Zhu Xi b5ad462601 Update the code logic for latestNode in tree.go (#2897) 2021-11-24 21:38:42 +08:00
Egor Seredin 3b555a5605 ClientIP: check every proxy for trustiness (#2844) 2021-11-24 21:38:12 +08:00
Notealot fc5d6dd113 Tidy: Complete TrustedProxies feature (#2887) 2021-11-24 21:38:12 +08:00
Notealot 7d2091402e Quick Fix c.ClientIP() mistakely parsing to 127.0.0.1 for who not using r.Run() to run http server (#2832) 2021-11-24 21:38:12 +08:00
joeADSP 4ad9526095 Fix grammatical and spelling errors in context.go (#2883) 2021-11-24 21:38:12 +08:00
寻寻觅觅的Gopher ccec19a145 turn on HandleMethodNotAllowed when using NoMethod #2871 (#2872) 2021-11-24 21:38:12 +08:00
Bo-Yi Wu b05210489c chore: Add go1.17 for testing (#2828)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-11-24 21:38:10 +08:00
thinkerou 1f2ed4e47a Fix go1.17 test error (#2856) 2021-11-24 21:37:56 +08:00
Lanco d420ebcf0a byte alignment (#2774) 2021-11-24 21:37:56 +08:00
Lanco d5ec201f15 Fix typo (#2772) 2021-11-24 21:37:56 +08:00
raymonder jin 1544791dc0 Fix insufficient slice check (#2755) 2021-11-24 21:37:56 +08:00
Alessandro (Ale) Segala e604a234d8 Setting trusted platform using an enum-like (#2739) 2021-11-24 21:37:56 +08:00
youzeliang 04d8641d90 Update tree.go (#2659)
delete more "()"
2021-11-24 21:37:56 +08:00
Alessandro (Ale) Segala a75162e0c8 Get client IP when using Cloudflare (#2723)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-11-24 21:37:56 +08:00
yiranzai 02c250fd24 set engine.TrustedProxies For items that don't use gin.RUN (#2692)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-11-24 21:37:56 +08:00
thinkerou 7ee83ec3d5 Remove go1.12 support (#2679)
* Revert "Adding ppc64le architecture support on travis-ci (#2538)"

This reverts commit fca3f95d7c.

* not support go1.12

* fix

* Update errors_test.go

* Update debug.go
2021-11-24 21:37:56 +08:00
Bo-Yi Wu 92eeaa4ebb docs: release v1.7.3 (#2802)
* docs: release v1.7.3

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix: format

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-08-03 10:40:44 +08:00
qm012 9d016f6841 fix #2786 (#2796)
* update match rule

* add comments
2021-08-03 10:40:31 +08:00
qm012 9bc4d8c161 fix #2762 (#2767) 2021-08-03 10:40:21 +08:00
Bo-Yi Wu 3f5c051828 chore(docs): bump to v1.7.2 (#2724)
* chore(docs): bump to v1.7.2

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* chore: add change log

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-22 07:41:37 +08:00
Yue Yang 1a3e58b0a0 Fix conflict between param and exact path (#2706)
* Fix conflict between param and exact path

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* Add test

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* Fix prefix conflict in exact paths

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* Use backtracking

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* Fix panic

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2021-05-22 07:41:26 +08:00
thinkerou 51c7d001e0
bump to v1.7.1 (#2678) 2021-04-09 07:38:13 +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
Bo-Yi Wu d496f64540
bump to v1.7.0 version (#2672) 2021-04-08 15:47:41 +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
Ross Wolf f3de8132c5
Add mixed param and non-param paths (port of httprouter#329) (#2663)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-04-06 10:49:08 +08:00
Ni Hao a331dc6a31
chore: remove duplicate test 'assert.Equal' (#2617)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-03-27 14:41:31 +08:00
thinkerou ed6f85c478
build: convert to go:build directives (#2664) 2021-03-27 09:09:44 +08:00
Andy Pan 1bdf86b722
Remove the tedious named return value (#2620)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-02-08 23:24:22 +08:00
Alexander Melentyev e899771392
chore: Deleted spaces (#2622) 2021-01-27 09:58:21 +08:00
Snawoot b01605bb5b
basic auth: fix timing oracle (#2609)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-13 09:40:37 +08:00
Josep Jesus Bigorra Algaba 46ddd4259c
Fixes to the graceful shutdown example (#2552)
* Change error comparison to use errors.Is() and add a line of whitespace before the if statement on graceful shutdown

* Change from log.Fatalf to log.Printf to ensure the graceful shutdown actually works

Co-authored-by: J. J. Bigorra <josep@prowarehouse.nl>
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-13 09:06:12 +08:00
Qt f4bc259de3
fix error gin support min Go version (#2584)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-12 08:32:04 +08:00
Rubi e753c502dc
gin mode unknown: show available mode (#2567)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-12 00:03:31 +08:00
Jeff 4d2dad5961
test: fixed the TestUnixSocket test on windows (#2595)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-11 09:07:45 +08:00
thinkerou a28cc088b5
Revert "Adding ppc64le architecture support on travis-ci (#2538)" (#2602) 2021-01-10 23:51:02 +08:00
kishor kunal raj fca3f95d7c
Adding ppc64le architecture support on travis-ci (#2538)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-01-03 22:30:22 +08:00
wuhuizuo 4bfae4c8c8
Support binding for slice/array obj [Rewrite] (#2302)
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-01-03 21:43:34 +08:00
thinkerou a573ec6a37
chore: update tree (#2371)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-01-03 21:34:11 +08:00
thinkerou 3b5e861bb1
fix compile error from #2572 (#2600) 2021-01-03 21:14:56 +08:00
An Xiao (Luffy) 7742ff50e0
Fix typos in context.go (#2551) 2020-11-11 09:41:35 +08:00
Alessandro (Ale) Segala 65ed60ed13
Allow bind with a map[string]string (#2484)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2020-10-31 07:20:47 +08:00
thinkerou 16cd8cdd4e
ci: romove go1.11 for gin1.7 (#2540) 2020-10-25 17:08:30 +08:00
Peperoncino 7e444c6f59
upgrade go-validator to v10.4.1 (#2536) 2020-10-21 09:36:01 +08:00
Georges Varouchas f969bfaf50
implement ".Unwrap() error" on Error type (#2525) (#2526)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: thinkerou <thinkerou@gmail.com>
2020-10-17 21:22:37 +08:00