mirror of
https://github.com/bettercap/bettercap
synced 2025-07-10 15:23:30 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
0fc5bb371a
commit
0e86cf4394
1 changed files with 0 additions and 3 deletions
|
@ -19,9 +19,6 @@ type APIResponse struct {
|
|||
|
||||
func SafeBind(c *gin.Context, obj interface{}) error {
|
||||
decoder := json.NewDecoder(io.LimitReader(c.Request.Body, 100*1024))
|
||||
if binding.EnableDecoderUseNumber {
|
||||
decoder.UseNumber()
|
||||
}
|
||||
if err := decoder.Decode(obj); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue