1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-22 20:06:21 +02:00
Commit Graph

1747 Commits

Author SHA1 Message Date
martinpasaribu
fb769d71b5 🎨 : add some test case for multipart file 2024-10-20 21:03:50 +03:00
martinpasaribu
d1ab8e8544 bind: add support of multipart multi files 2024-10-20 21:03:50 +03:00
martinpasaribu
ab87b63640 improve MultipartForm test 2024-10-06 23:53:23 +03:00
toimtoimtoim
d20a6257aa Remove pre Go1.20 support 2024-08-16 09:16:52 +03:00
toimtoimtoim
27c55f2189 tests: In Go 1.23 fs related errors have changed. 2024-08-16 09:16:52 +03:00
toimtoimtoim
a5612d83d0 Add Go 1.23 to CI 2024-08-16 09:16:52 +03:00
Saloni Agarwal
f13e2640f0
bind: Maintain backwards compatibility for map[string]interface{} binding (#2656)
* bind: Maintain backwards compatibility for map[string]interface{} binding

* bind to single string for map[string]interface{}{}
2024-07-22 07:33:01 +03:00
Behnam
f7d9f5142e
optimization: struct alignment (#2636)
(#2632)
2024-05-30 22:50:01 +03:00
Martti T
88c379ff77
Changelog for v4.12.0 (#2626) 2024-04-15 21:31:01 +03:00
Martti T
e0f2a02e4c
proxy middleware should use http proxy for SSE requests (#2624) 2024-04-15 21:12:26 +03:00
Martti T
3062025405
Update golang.org/x/* deps (#2625) 2024-04-15 20:45:51 +03:00
Martti T
447c92d842
When route is registered with empty path it is normalized to /. Make sure that returned echo.Route structs reflect that behavior. (#2616) 2024-03-27 12:28:46 +02:00
Martti T
d549290448
Remove maxparam dependence from Context (#2611) 2024-03-21 23:42:16 +02:00
Martti T
011acb4732
default binder can bind pointer to slice as struct field. For example *[]string (#2608) 2024-03-13 22:07:08 +02:00
Martti T
c57fcb3746
Default binder can use UnmarshalParams(params []string) error interface to bind multiple input values at one go. (#2607) 2024-03-11 22:49:58 +02:00
Vladimir Buyanov
a3b0ba24d3
Fix Real IP logic (#2550)
* Fix realIP logic
2024-03-10 19:04:54 +02:00
Martti T
3598f295f9
Change type definition blocks to single declarations. This helps copy/pasting Echo code in examples. (#2606) 2024-03-09 07:53:07 -08:00
toimtoimtoim
5f7bedfb86 update makefile 2024-03-09 11:28:13 +02:00
toimtoimtoim
f0966790fb Upgrade deps 2024-03-09 11:28:13 +02:00
Martti T
a842444e8f
Add SPDX licence comments to files. See https://spdx.dev/learn/handling-license-info/ (#2604) 2024-03-09 11:21:24 +02:00
Martti T
bc1e1904f1
Allow ResponseWriters to unwrap writers when flushing/hijacking (#2595)
* Allow ResponseWriters to unwrap writers when flushing/hijacking
2024-03-09 10:50:47 +02:00
pomadev
3e04e3e2f2
fix: some typos (#2596) 2024-03-06 21:52:53 +02:00
teslaedison
34717b717d
fix some typos (#2603)
Signed-off-by: teslaedison <qingchengqiushuang@gmail.com>
2024-03-06 21:43:59 +02:00
Ryo Kusnadi
fa70db801e
Add Skipper Unit Test In BasicBasicAuthConfig and Add More Detail Explanation regarding BasicAuthValidator (#2461)
* Add Skipper Unit Test In BasicBasicAuthConfig and Add More detail explanation regarding BasicAuthValidator

* Simplify Skipper Unit Test
2024-02-18 15:47:13 +02:00
Georg Müller
ea529bbab6 binder: allow binding to a nil map 2024-02-13 20:16:18 +02:00
toim
29aab274b3 In Go 1.22 finding name of function with reflection has changed. change tests to work with that. 2024-02-07 07:54:21 +02:00
toim
51c54f4734 CI: Use Go 1.22 2024-02-07 07:54:21 +02:00
Suwon Chae
76994d17d5
Remove default charset from 'application/json' Content-Type header (#2568)
Fixes #2567
2024-02-06 07:41:33 +02:00
Martti T
f12fdb09cd
CI: upgrade actions/checkout to v4 and actions/setup-go to v5 (#2584)
* CI: upgrade actions/checkout to v4
* CI: upgrade actions/setup-go to v5
2024-01-28 17:16:51 +02:00
Martti T
b835498241
Reorder paragraphs in README.md (#2581) 2024-01-24 07:45:40 -08:00
Marcus Kohlberg
d262120690
README.md: add Encore as sponsor (#2579)
There wasn't a sponsors section so I had to design one, hope you think it makes sense.
2024-01-22 19:26:05 -08:00
Martti T
60fc2fb1b7
binder: make binding to Map work better with string destinations (#2554) 2023-12-20 15:32:51 +02:00
Martti T
226e4f076a
Changelog for v4.11.4 (#2564)
Changelog for v4.11.4
2023-12-20 15:24:30 +02:00
Martti T
209c6a199a
Update deps and mark Go version to 1.18 as this is what golang.org/x/* use. (#2563) 2023-12-20 15:17:20 +02:00
Nicu Maxian
287a82c228
Upgrade golang.org/x/crypto to v0.17.0 to fix vulnerability issue (#2562)
Co-authored-by: Nicu MAXIAN <nicu@numeral.io>
2023-12-19 18:07:23 +02:00
Martti T
584cb85a6b
request logger: add example for Slog https://pkg.go.dev/log/slog (#2543) 2023-11-07 15:09:43 +02:00
Martti T
4b26cde851
Changelog for v4.11.3 (#2542) 2023-11-07 14:19:32 +02:00
Martti T
14daeb9680
Security: c.Attachment and c.Inline should escape name in Content-Disposition header to avoid 'Reflect File Download' vulnerability. (#2541)
This is same as Go std does it 9d836d41d0/src/mime/multipart/writer.go (L132)
2023-11-07 14:10:06 +02:00
Martti T
50ebcd8d7c
refactor context tests to be separate functions (#2540) 2023-11-07 13:40:22 +02:00
Kai Ratzeburg
c7d6d4373f
proxy middleware: reuse echo request context (#2537) 2023-11-05 18:01:01 +02:00
Martti T
69a0de8415
Mark unmarshallable yaml struct tags as ignored (#2536) 2023-10-24 21:12:13 +03:00
Martti T
98a523756d
Changelog for v4.11.2 (#2529) 2023-10-11 08:32:23 +03:00
Štefan Baebler
89ae0e5f2c
Bump dependancies (#2522)
Bump:
* golang.org/x/net v0.12.0 -> v0.15.0
* golang.org/x/crypto v0.11.0 -> v0.13.0
* github.com/stretchr/testify v1.8.1 -> v1.8.4

go mod tidy
2023-10-11 07:47:09 +03:00
Štefan Baebler
5780908c7c
Fix CVE-2023-39325 / CVE-2023-44487 (#2527)
Bump golang.org/x/net from v0.12.0 to v0.17.0

Related:
* https://github.com/golang/go/issues/63417
* https://www.cve.org/CVERecord?id=CVE-2023-44487
2023-10-11 07:14:52 +03:00
Martti T
4bc3e475e3
cors middleware: allow sending Access-Control-Max-Age: 0 value with config.MaxAge being negative number. (#2518) 2023-09-19 08:24:47 +03:00
eiei114
3950c444b7
fix some typos (#2511) 2023-09-13 22:41:58 +03:00
Martti T
77d5ae6a91
Use Go 1.21 in CI (#2505) 2023-08-12 09:01:30 +03:00
Trim21
e6b96f8873
docs: add comments to util.go randomString (#2494)
* Update util.go
2023-07-22 23:47:35 +03:00
Trim21
b3ec8e0fdd
fix(sec): randomString bias (#2492)
* fix(sec): `randomString` bias when using bytes vs int64
* use pooled buffed random reader
2023-07-22 07:08:34 +03:00
toimtoimtoim
626f13e338 CSRF/RequestID mw: switch math/random usage to crypto/random 2023-07-21 13:10:56 +03:00