Repository navigation
Comparing changes
Open a pull request
base repository: labstack/echo
base: e75c6c6
head repository: labstack/echo
compare: 600b985
- 9 commits
- 26 files changed
- 3 contributors
Commits on Sep 28, 2026
-
Configuration menu - View commit details
-
Copy full SHA for a7109fa - Browse repository at this point
Copy the full SHA a7109faView commit details
Commits on Sep 29, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 5730445 - Browse repository at this point
Copy the full SHA 5730445View commit details -
static: harden dot-segment check for backslashes, test non-validating…
… custom fs.FS (v4) (#3130) * static: reject backslash dot segments, test non-validating custom fs.FS * static: test backslash hardening on every OS, add default-config vectors, fix comments * static: keep static_windows.go reference (exists on v4)
Configuration menu - View commit details
-
Copy full SHA for 577ba39 - Browse repository at this point
Copy the full SHA 577ba39View commit details -
fix(middleware): prevent BodyLimit bypass in v4 (#3131)
Cap oversized request-body reads, preserve HTTP 413 through binding, and keep each request reader for its lifetime. Fixes #3071.
Configuration menu - View commit details
-
Copy full SHA for 5440f99 - Browse repository at this point
Copy the full SHA 5440f99View commit details
Commits on Sep 30, 2026
-
fix(router): handle escaped colons and inline verbs in v4 (#3132)
* fix(router): keep escaped colon and parameter routes reachable in v4 * fix(router): parse inline verbs consistently in v4 * fix(router): backtrack inline verb splits in v4 * perf(router): preserve v4 fast path without inline verbs * fix(router): retry inline verb splits on the param node in v4 Backport of the v5 change. Replace the whole-search retry plan with a backtrack point on the param node: when a candidate split fails, the same param node is retried with the next literal-colon split and finally the whole path segment before routing backtracks to its parent. Static > param > any priority of ancestors, the leaf rule of later params, group middleware and catch-all routes are no longer affected by a failed split. An escaped colon after a parameter starts an inline verb only when the rest of that path segment is static (`/:name\:cancel`, optionally followed by `/...`). Split candidates are then scanned once per segment, so a request with many colons is routed in linear time. Other escaped colons after a parameter keep their older meaning as part of the parameter name. The duplicated fast-path Find and the router-level inline verb flag are removed. The param scan uses strings.IndexByte, which keeps router benchmarks within about 0.3% of v4 (geomean). * fix(router): retry inline verb splits after a wildcard fails A wildcard ends the route search, but a param value above it that ended at an inline verb split is now retried with the next split and the whole segment, so a verb route with a wildcard cannot shadow a generic route for other methods. The retry now runs only when routing backtracks from the inline verb child into its param node, instead of on every dead end. An escaped colon after a parameter keeps its older meaning (part of the parameter name) unless the first one in the segment starts an inline verb, so a later `\:` cannot turn such a legacy route into a verb route. Reverse writes placeholders for such names without the backslash, as before. Dead hasColonChild bookkeeping for split nodes is removed. * fix(router): keep backtracking below an inline verb split When a wildcard fails below a param value that ended at an inline verb split, keep backtracking one node at a time instead of jumping to that param node, so the other routes below the split are tried before the next split. Without a pending split a failed wildcard still ends the search as before, and the check does not change the routing state. Adds tests for nested splits, routes below a split and a RouteNotFound wildcard below a split. * fix(router): keep escaped colons after complex param names in v4 An escaped colon after a param name that contains ':' or '*' keeps its older meaning as part of the name. The escaped colon check is shared in the route syntax scanner. Adds tests for RouteNotFound on the whole segment and Reverse placeholders. * fix(router): keep leaf params matching the rest of the path Registering an inline verb route under a param gave the param node a static child, so a sibling route ending in that param (`/files/:path`) stopped matching values across slashes. When the inline verb child is the node's only child, a param value without a split now takes the rest of the path, as a leaf param does. * test(router): cover leaf param fallbacks next to an inline verb Drop the param and any child checks that cannot fail for a param node, and pin 405, RouteNotFound and wildcard fallbacks for a param value that spans slashes next to an inline verb route.
Configuration menu - View commit details
-
Copy full SHA for f085ffb - Browse repository at this point
Copy the full SHA f085ffbView commit details
Commits on Oct 5, 2026
-
fix(bind): honor OpenAPI date, date-time and date-time-local format t…
…ags (v4) (#3156) Backport of #3145. Swag and OpenAPI put format names such as `format:"date-time"` on `time.Time` fields. Since v4.14.0 added `format` tag support, the binder has treated those names as Go time layouts, so valid input failed to bind. - `date-time` uses the same RFC3339 decoding as an untagged `time.Time`, restoring the pre-v4.14.0 behavior. - `date-time-local` accepts `2006-01-02T15:04:05` with optional fractional seconds, rejects time-zone suffixes, and assigns UTC. - `date` accepts `2006-01-02` and assigns UTC. - Other `format` values are still Go layouts. Slice fields, JSON/XML decoding, and custom unmarshalers are unchanged. Refs #3107
Configuration menu - View commit details
-
Copy full SHA for 320fe67 - Browse repository at this point
Copy the full SHA 320fe67View commit details
Commits on Oct 6, 2026
-
fix(router): grow param values for contexts created before a route wi…
…th more params (v4) (#3158) Adding a route with path params after Echo has served requests could panic with "index out of range": pooled contexts keep the pvalues length they were created with, and Router.Find sets values by index. Find now grows the context's pvalues when it is about to set a param or any value past its length, keeps the values already set, and stores the new slice on the context. Static routes never reach these branches. Refs #1705
Configuration menu - View commit details
-
Copy full SHA for be08005 - Browse repository at this point
Copy the full SHA be08005View commit details
Commits on Oct 22, 2026
-
* fix(middleware): bound v4 body dumps without truncating requests Default request and response capture to 5 MiB with configurable opt-outs. Replay captured request bytes before the remaining original stream and preserve read errors and Close ownership. Cover bounded captures, full payload delivery, and BodyLimit composition. Addresses GHSA-f48p-c9v4-h7xv. Request replay follows the v5 contribution in PR 3105. Co-authored-by: Jake Wang <[email protected]> * fix(middleware): limit v4 decompressed request sizes Apply a configurable 100 MiB decompression cap and return HTTP 413 for excess data. Accept exact-limit bodies, retain overflow errors on repeated reads, and clear compressed ContentLength metadata. Cover defaults, opt-outs, boundaries, and streaming compressed expansion. Addresses GHSA-h7wr-284f-5qvc. Boundary handling follows the v5 contribution in PR 3136. Co-authored-by: Shubham Padkonde <[email protected]> * fix(middleware): validate v4 proxy upgrades and close disconnected tunnels Backport the v5 standard reverse-proxy handling, WebSocket disconnect cleanup, ws/wss target normalization, and Forwarded-header removal. Cover rejected and accepted upgrades, both disconnect directions, and protocol mismatch. Addresses GHSA-cxf3-9h37-7rr8, GHSA-9969-6676-49h5, and hardens GHSA-6gpx-gjwr-mhp8. * fix(deps): update v4 HTTP/2 dependencies and require Go 1.26 Upgrade golang.org/x/net to v0.60.0 and its required crypto, sys, and text versions to remediate reachable HTTP/2 advisories. Match the supported CI matrix to Go 1.26 and 1.27. Preserve the existing StartH2CServer API with narrow deprecation annotations. * test(middleware): verify v4 WebSocket transport and response hooks * fix(middleware): close v4 WebSocket backends that ignore client EOF Disable backend half-close after the response hook, matching frontend handling, for WebSocket upgrades. Add the review regression with an upstream that stays open after reading client EOF; the proxy must finish independently. * test(middleware): verify v4 decompression limits through JSON and XML binding Confirm that Bind preserves ErrStatusRequestEntityTooLarge and the default error handler returns HTTP 413 for both formats. This disproves the review claim that these paths turn the limit into HTTP 400. --------- Co-authored-by: Jake Wang <[email protected]> Co-authored-by: Shubham Padkonde <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3fb0ba7 - Browse repository at this point
Copy the full SHA 3fb0ba7View commit details -
chore: prepare v4.16.1 security release (#3186)
* chore: prepare v4.16.1 security release * docs: explain v4 security release requirements and defaults
Configuration menu - View commit details
-
Copy full SHA for 600b985 - Browse repository at this point
Copy the full SHA 600b985View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff e75c6c6...600b985