From 7291f032465ff4dc6fb329390508158b0eeb0aa6 Mon Sep 17 00:00:00 2001 From: George Corney Date: Sun, 21 Oct 2018 16:56:14 +0100 Subject: [PATCH] Add missing / in URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current version only works with JS target – see https://github.com/HaxeFoundation/haxe/issues/7563 --- examples/Example-19.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Example-19.hx b/examples/Example-19.hx index f6cdbba..b299c62 100644 --- a/examples/Example-19.hx +++ b/examples/Example-19.hx @@ -1,6 +1,6 @@ class Test { static function main() { - var http = new haxe.Http("https://api.ipify.org?format=json"); + var http = new haxe.Http("https://api.ipify.org/?format=json"); http.onData = function(data) { var result:IpAddress = haxe.Json.parse(data); trace('Your IP-address: ${result.ip}');