mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-19 15:01:22 +02:00
added real_ip and cloudflare_real_ip middlewares, fixed that some middlewares does not work properly
This commit is contained in:
@@ -107,6 +107,9 @@ func Serialize(data any) (SerializedObject, E.NestedError) {
|
||||
}
|
||||
|
||||
func Deserialize(src SerializedObject, target any) E.NestedError {
|
||||
if src == nil || target == nil {
|
||||
return nil
|
||||
}
|
||||
// convert data fields to lower no-snake
|
||||
// convert target fields to lower no-snake
|
||||
// then check if the field of data is in the target
|
||||
|
||||
Reference in New Issue
Block a user