File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ How to release a new version:
5
5
6
6
## [ Unreleased]
7
7
8
+ ## [ 0.4.0] - 2022-01-12
9
+ ### Changed
10
+ - JSON tags in ` ErrorResponseOptions ` .
11
+
12
+ ### Fixed
13
+ - JSON tag for ` MaxHeaderBytes ` field in ` Limits ` configuration.
14
+
8
15
## [ 0.3.0] - 2023-01-09
9
16
### Added
10
17
- HTTP response writer contains error field.
@@ -25,7 +32,8 @@ How to release a new version:
25
32
### Added
26
33
- Added Changelog.
27
34
28
- [ Unreleased ] : https://github.com/strvcom/strv-backend-go-net/compare/v0.3.0...HEAD
29
- [ 0.3.0 ] : https://github.com/strvcom/strv-backend-go-net/releases/tag/v0.3.0
30
- [ 0.2.0 ] : https://github.com/strvcom/strv-backend-go-net/releases/tag/v0.2.0
35
+ [ Unreleased ] : https://github.com/strvcom/strv-backend-go-net/compare/v0.4.0...HEAD
36
+ [ 0.4.0 ] : https://github.com/strvcom/strv-backend-go-net/compare/v0.3.0...v0.4.0
37
+ [ 0.3.0 ] : https://github.com/strvcom/strv-backend-go-net/compare/v0.2.0...v0.3.0
38
+ [ 0.2.0 ] : https://github.com/strvcom/strv-backend-go-net/compare/v0.1.0...v0.2.0
31
39
[ 0.1.0 ] : https://github.com/strvcom/strv-backend-go-net/releases/tag/v0.1.0
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ type Limits struct {
33
33
34
34
// MaxHeaderBytes is part of http.Server.
35
35
// See http.Server for more details.
36
- MaxHeaderBytes int `json:"maxHeaderBytes "`
36
+ MaxHeaderBytes int `json:"max_header_bytes "`
37
37
}
38
38
39
39
// Timeouts represents configuration for HTTP server timeouts.
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ type ErrorResponseOptions struct {
90
90
ResponseOptions `json:"-"`
91
91
92
92
Err error `json:"-"`
93
- ErrCode string `json:"error_code "`
94
- ErrData any `json:"error_data ,omitempty"`
93
+ ErrCode string `json:"errorCode "`
94
+ ErrData any `json:"errorData ,omitempty"`
95
95
}
96
96
97
97
type ErrorResponseOption func (* ErrorResponseOptions )
You can’t perform that action at this time.
0 commit comments