mirror of
https://github.com/librespeed/speedtest.git
synced 2024-05-10 18:54:52 +00:00
Return empty rawIspInfo when no ISP info is obtained
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user