1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-28 21:08:39 +02:00
Commit Graph

1709 Commits

Author SHA1 Message Date
little-cui
1beaf09740 Bug Fix: Directory Traversal 2020-12-15 21:54:11 +08:00
Pablo Andres Fuente
e7741d48b1
Merge pull request #1719 from iambenkay/chore/request-id-test
adds test for request id
2020-12-15 01:32:30 -03:00
iambenkay
1c720597bb adds test for request id
- remain unchanged if provided
2020-12-14 19:06:25 +01:00
Pablo Andres Fuente
71325a6f1e erge branch 'master' into routing_misses_performance_improvements 2020-12-14 03:36:12 +00:00
toimtoimtoim
bd5810f5b5 separate methods to bind only query params, path params, request body 2020-12-13 11:19:05 +02:00
Pablo Andres Fuente
2b36b3d1d7
Merge pull request #1667 from pafuent/listener_network_configurable
Adding Echo#ListenerNetwork as configuration
2020-12-12 17:26:52 -03:00
Roland Lammel
06a9480cb2
Merge pull request #1679 from pafuent/update_benchmark_to_newer_versions
Update README.md with an updated Benchmark
2020-12-12 21:05:06 +01:00
Vadim Sabirov
53b38de143 Merge branch 'master' of https://github.com/labstack/echo 2020-12-11 12:34:52 +03:00
Roland Lammel
194129d070
Merge pull request #1699 from pafuent/improve_decompress_middleware
Adding sync.Pool to Decompress middleware
2020-12-11 10:09:41 +01:00
Roland Lammel
8c27828f11
Merge pull request #1659 from pafuent/panic_router_find_fails_on_params_with_no_root
Fixed panic when Router#Find fails on Param paths
2020-12-10 12:49:55 +01:00
Pablo Andres Fuente
78fe2224b6 Merge branch 'master' into listener_network_configurable 2020-12-10 04:10:13 +00:00
Pablo Andres Fuente
c171855555 Reverting changes on go.sum 2020-12-10 03:41:25 +00:00
Pablo Andres Fuente
f32e33a9d7 Merge branch 'master' into panic_router_find_fails_on_params_with_no_root 2020-12-10 03:39:59 +00:00
Roland Lammel
6caec3032b
Make our stalebot more relaxed
* Use newly added `stale` label for marking for auto-closing
* Ignore issues marked as bug or enhancement for stale marking
* Give more time for auto-closing of stale issue (30d instead of 7d)
2020-12-07 11:23:29 +01:00
Roland Lammel
429a8db01d
Merge pull request #1695 from pafuent/reverse_any_type_routes
Fixing Echo#Reverse for Any type routes
2020-12-06 17:00:23 +01:00
Roland Lammel
ec209b3bb6
Merge pull request #1706 from RashadAnsari/master
Add the ability to change the status code using Response beforeFuncs
2020-12-06 16:53:54 +01:00
Rashad Ansari
0406abe066 Add the ability to change the status code using Response beforeFuncs 2020-12-06 18:31:15 +03:30
Roland Lammel
6a266b8539
Merge pull request #1704 from rkfg/jwt-form
Support form fields in jwt middleware
2020-12-06 15:42:52 +01:00
Vadim Sabirov
dc147d9b97 Fix #1523 by adding secure cookie if SameSite mode is None 2020-12-03 10:21:31 +03:00
Vadim Sabirov
cb15226984 Merge branch 'master' of https://github.com/labstack/echo 2020-12-03 09:43:47 +03:00
Roland Lammel
a908413281
Merge pull request #1701 from lnenad/master
Adds IgnoreBase parameter to static middleware
2020-12-02 16:37:02 +01:00
Roland Lammel
b90e4e8ea1
Merge pull request #1702 from pafuent/increase_number_of_benchmarks_in_comparison_action
Increasing number of benchmarks on GitHub action
2020-12-01 11:24:29 +01:00
Roland Lammel
257547187e
Merge pull request #1703 from pafuent/adding_codecov_configuration
Adding Codecov configuration
2020-12-01 11:24:11 +01:00
Nenad Lukic
571661692f Uses filepath.Join instead of hardcoded separator for static middleware test 2020-12-01 09:03:00 +01:00
rkfg
2152e4e872 Support form fields in jwt middleware 2020-12-01 09:51:20 +03:00
Pablo Andres Fuente
61514f1c84 Changes on codecov.yml will trigger GitHub Actions 2020-12-01 05:06:31 +00:00
Pablo Andres Fuente
99d5a07097 Adding Codecov configuration
Adding a 1% of threshold for coverage diffs
2020-12-01 05:00:19 +00:00
Pablo Andres Fuente
364b7e6eca Increasing number of benchmarks on GitHub action
Now the number of times that the benchmarks are run before being
compared is 8 on the GitHub action.
2020-12-01 04:39:06 +00:00
Nenad Lukic
3206527cfe Adds IgnoreBase parameter to static middleware
Adds IgnoreBase parameter to static middleware to support the use case of nested route groups
2020-11-30 19:06:00 +01:00
Pablo Andres Fuente
2386e17b21 Increasing Decompress Middleware coverage 2020-11-28 02:03:54 +00:00
Pablo Andres Fuente
14e020bc07 Adding sync.Pool to Decompress middleware
Fixing a http.Request.Body leak on the decompress middleware that were
not properly Close
Removing the defer on the call to gzip.Reader, because that reader is
already exausted after the call to io.Copy
2020-11-27 03:01:04 +00:00
Roland Lammel
502cce28d5
Merge pull request #1651 from curvegrid/cors-allow-origin-func
CORS: add an optional custom function to validate the origin
2020-11-25 10:36:46 +01:00
Pierre Rousset
e6f24aa8b1 Addressed PR feedback 2020-11-24 16:25:49 +09:00
Pierre Rousset
26ab188922 CORS: add an optional custom function to validate the origin 2020-11-24 16:24:17 +09:00
Pablo Andres Fuente
5f1aa1bc07 Fixing Echo#Reverse for Any type routes
Fixes #1690
2020-11-24 03:24:27 +00:00
Roland Lammel
17a5fca161
Merge pull request #1692 from pafuent/benchmark_github_action
Adding GitHub action to compare benchmarks
2020-11-23 18:00:47 +01:00
Pablo Andres Fuente
5b9bbbd356 Adding GitHub action to compare benchmarks
The GitHub action runs all the benchmarks for the target branch, and the
compares those values with the benchmarks results for the PR new code.
2020-11-23 05:28:17 +00:00
Pablo Andres Fuente
f1a4cb42e4
Update README.me 2020-11-23 00:31:00 -03:00
Pablo Andres Fuente
3a6100bebe Improving routing performance and benchmark suite
Before this commit, all the node types were added to the same list of
children nodes. Taking in consideration that only one Param and Any type
of node could exist per node, two new node struct field were added to hold
the references to those kind of nodes.
This avoid the need to iterate through all the Static type nodes just to
find one Param or Any type node. Those iterations could be performed
multiple times in the same iteration of Router#Find.
Removing the route comments of the Router benchmark tests.
Updating the Router benchmarks tests to find the routes defined to each
particular benchmark. Before, all the benchmarks tried to find only the
GitHub API.
Adding new router benchmarks to measure when the Router try to find
routes that are not registered.
2020-11-22 03:09:33 +00:00
Roland Lammel
ad3be08de1
Merge pull request #1683 from asahasrabuddhe/patch-2
Add support for Go 1.15 to CI
2020-11-20 13:38:34 +01:00
Roland Lammel
3912d62031
Merge pull request #1662 from santosh653/master
Adding second arch ppc64le to CI
2020-11-20 12:46:14 +01:00
Roland Lammel
9676696b42
Merge pull request #1656 from imxyb/remove-defer
remove useless defer for Context.FormFile
2020-11-20 12:43:26 +01:00
Ajitem Sahasrabuddhe
fdbcc2f94e
add support for go 1.12 2020-11-20 17:11:08 +05:30
Roland Lammel
90bef88e1a
Merge pull request #1669 from ulasakdeniz/fix-incorrect-cors-headers
Fix empty/incorrect CORS headers
2020-11-20 11:54:01 +01:00
Roland Lammel
ce95e12416
Merge pull request #1687 from arun0009/master
adding decompress gzipped request middleware
2020-11-20 11:26:37 +01:00
Arun Gopalpuri
b47042f385 adding decompress gzipped request middleware 2020-11-20 00:51:24 -08:00
Ajitem Sahasrabuddhe
d385a92e51
add support for Go 1.15 & drop support for Go 1.12 2020-11-13 17:30:47 +05:30
Pablo Andres Fuente
ce646ae65e
Update README.md with an updated Benchmark
There is also a related [PR](https://github.com/vishr/web-framework-benchmark/pull/3) to update the benchmark code
2020-11-12 00:03:58 -03:00
Roland Lammel
7a90304d2d
Merge pull request #1637 from pofl/patch-2
Run Test Workflow only if Go code was changed
2020-11-11 14:48:26 +01:00
Florian Polster
31599cf1f4
Workflow also run on changes to go.mod, _fixture, .github changes 2020-11-11 10:19:05 +01:00