Bo-Yi Wu
757a638b7b
chore: improve linting, testing, and GitHub Actions setup ( #3583 )
...
- Update golangci-lint version from `v1.48.0` to `v1.52.2`
- Remove Gitter notifications from GitHub Actions workflow
- Add gosec linter settings and include specific rules
- Exclude revive linter for test files
- Remove Gitter badge from README.md
- Delete codecov.yml file
- Change function parameter name in fs.go
- Remove unused parameter in defaultHandleRecovery function
Signed-off-by: appleboy <appleboy.tw@gmail.com>
2023-04-26 14:13:56 +08:00
lgbgbl
de1c4ec546
refactor: use bytes.ReplaceAll directly ( #3455 )
2023-03-01 13:57:15 +08:00
lgbgbl
297b664cf8
refactor: avoid calling strings.ToLower twice ( #3433 )
2022-12-22 23:17:19 +08:00
Qt
6150c488e7
remove deprecated of package io/ioutil ( #3395 )
2022-11-17 22:35:55 +08:00
thinkerou
b04917c53e
chore: upgrade golangci-lint and fix golangci-lint error ( #3278 )
2022-08-15 21:38:20 +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
thinkerou
2bde107686
test support go1.18 ( #2990 )
2022-03-21 09:43:17 +08:00
jincheng9
830a63d244
fix: typo ( #2973 )
...
* fix: typo
* fix: grammar error
2021-12-02 18:00:24 +08:00
Matthieu MOREL
71f7087097
golangci(lint) : more linters ( #2870 )
2021-09-21 15:22:21 +08:00
ziheng
09f6cff92a
skip unnecessary variable assignment in timeFormat ( #2761 )
2021-06-24 15:31:38 +08:00
ziheng
be860ec157
fix typo and add comments ( #2760 )
2021-06-24 13:07:49 +08:00
Zach Newburgh
a7a6986d73
fix: print headers without Authorization header on broken pipe ( #2528 )
...
Co-authored-by: thinkerou <thinkerou@gmail.com>
2020-10-15 22:41:35 +08:00
Johnny Dallas
4cabdd303f
Add CustomRecovery builtin middleware ( #2322 )
...
* Add CustomRecovery and CustomRecoveryWithWriter methods
* add CustomRecovery example to README
* add test for CustomRecovery
* support RecoveryWithWriter(io.Writer, ...RecoveryFunc)
2020-07-09 09:40:00 +08:00
thinkerou
54175dbe72
chore: update the result of CR ( #2354 )
...
* chore: update the result of CR
* Update utils.go
* Update utils.go
* Update context.go
* Update context.go
2020-05-04 11:40:41 +08:00
Abhishek Chanda
f9de6049cb
Remove contents of the Authorization header while dumping requests ( #1836 )
...
This PR replaces the contents of that header with a *. This prevents
credential leak in logs.
2019-04-18 10:45:37 +08:00
Riverside
057f63b1bb
spell check ( #1796 )
...
* spell check
* variable path collides with imported package name
* spell check
2019-03-05 09:41:37 +08:00
Dmitry Kutakov
b056a34bdc
fix errcheck warnings ( #1739 )
2019-01-18 09:32:53 +08:00
thinkerou
7ec82ee894
recovery: fix issue about syscall import on google app engine ( #1640 )
...
* recovery: fix issue about syscall import on google app engine
* add ToLower()
* the whole error message
2018-11-22 09:17:44 +08:00
Justin Israel
37854ee10f
Fix panic stack trace being printed during recovery of broken pipe ( #1089 ) ( #1259 )
2018-11-06 13:40:20 +08:00
Dustin Decker
ad53619b15
Don't log requests ( #1370 )
...
Fixes #1331
HTTP logging leaks sensitive request information.
This PR removes HTTP request logging during panics.
2018-09-23 15:15:23 +08:00
田欧
6c6d97ba2e
remove hardcode instead of http status value ( #1411 )
2018-06-26 17:21:32 +08:00
hellojukay
65a65c2edd
add gin panic time log ( #1270 )
...
* add gin pinic time log
* Update recovery.go
2018-03-20 14:42:51 +08:00
Eason Lin
848fa41ca0
doc(recovery): add RecoveryWithWriter doc ( #1097 )
2017-09-05 09:17:53 +08:00
Edward Betts
ab50cf9790
correct spelling mistake ( #1092 )
2017-09-01 22:02:25 +08:00
田欧
a8fa424ae5
update comment ( #1057 )
2017-08-16 11:55:50 +08:00
Manu Mtz.-Almeida
61fae4997d
Improves documentation
2016-01-26 22:40:29 +01:00
Manu Mtz.-Almeida
1183c1ca8f
Fixed recovery unit tests
2016-01-26 19:28:41 +01:00
Manu Mtz.-Almeida
7afb3238a3
Improves Recovery middleware:
...
- request context
- red colouring
2016-01-26 18:35:56 +01:00
Manu Mtz-Almeida
9ecb76ef6e
Cosmetic changes
2015-05-18 20:50:46 +02:00
Manu Mtz-Almeida
99694bb716
Fixes errors
2015-05-12 15:22:13 +02:00
Manu Mtz-Almeida
54b3decc21
More unit tests
2015-04-08 13:30:17 +02:00
Christopher Harrington
6bd27d0238
Remove reference to Martini from recovery.go
2015-02-14 21:55:39 -06:00
Manu Mtz-Almeida
8e5397bfa0
Adds in-code license
2014-08-29 19:49:50 +02:00
Manu Mtz-Almeida
fa80b047f9
The Recovery() middleware should not print the errors (only panics)
2014-07-04 04:32:43 +02:00
Manu Mtz-Almeida
f72fcdf5ba
Improves error log formatting
2014-07-02 02:31:11 +02:00
Manu Mtz-Almeida
15216a0883
Initial commit
2014-06-18 01:42:34 +02:00