mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
3d312a9cdf
commit
342d1cf7c9
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ func UPNPGetMeta(pkt gopacket.Packet) map[string]string {
|
|||
meta := make(map[string]string)
|
||||
for name, values := range response.Header {
|
||||
if name != "Cache-Control" && len(values) > 0 {
|
||||
if data := strings.Join(values, ", "); core.Trim(data) != "" {
|
||||
if data := core.Trim(strings.Join(values, ", ")); data != "" {
|
||||
meta["upnp:"+name] = data
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue