mirror of
https://github.com/librespeed/speedtest.git
synced 2026-05-13 16:26:38 +00:00
Return empty rawIspInfo when no ISP info is obtained
This commit is contained in:
parent
79b4c54770
commit
73318e153b
1 changed files with 3 additions and 0 deletions
|
|
@ -179,6 +179,9 @@ func getIP(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
ret.ProcessedString += " - " + isp
|
||||
} else {
|
||||
// return an empty JSON object to avoid parse errors
|
||||
ret.RawISPInfo = "{}"
|
||||
}
|
||||
|
||||
render.JSON(w, r, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue