Skip to content

Commit 9fed54c

Browse files
authored
fix: forced ipinfo to return json
1 parent 5d98e71 commit 9fed54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/local/src/location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn get_windows() -> Result<Coordinates, CoordinateError> {
9999
}
100100

101101
fn get_web() -> Result<Coordinates, CoordinateError> {
102-
let mut resp = networking::get!("https://ipinfo.io")?.text;
102+
let mut resp = networking::get!("https://ipinfo.io/json")?.text;
103103
let json: HashMap<String, String> = unsafe { simd_json::from_str(&mut resp)? };
104104
let location_vec: Vec<&str> = json
105105
.get("loc")

0 commit comments

Comments
 (0)