Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return reserved #31

Merged
merged 3 commits into from
Apr 28, 2020
Merged

Return reserved #31

merged 3 commits into from
Apr 28, 2020

Conversation

Costamilam
Copy link
Contributor

In local testing, the IP 127.0.0.1 response does not contain language property, throwing "TypeError: Cannot read property 'split' of undefined"
Added property reserved in function return

https://ipapi.co/127.0.0.1/json/

{
    "ip": "127.0.0.1",
    "reserved": true
}

In local testing, the IP 127.0.0.1 response does not contain language property, throwing "TypeError: Cannot read property 'split' of undefined"
Added property `reserved` in function return

https://ipapi.co/127.0.0.1/json/
{
    "ip": "127.0.0.1",
    "reserved": true
}
source/index.ts Outdated Show resolved Hide resolved
Costamilam and others added 2 commits April 28, 2020 13:38
If `reserved` is true return:
{
    "reserved": true
}
Signed-off-by: Richie Bendall <[email protected]>
@Richienb Richienb changed the title IP 127.0.0.1 has no language property Return reserved Apr 28, 2020
@Richienb Richienb merged commit 46bae52 into Richienb:master Apr 28, 2020
@Costamilam Costamilam deleted the patch-1 branch April 30, 2020 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants