]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/wolfram-alpha/wolfram-alpha.factor
Switch to https urls
[factor.git] / extra / wolfram-alpha / wolfram-alpha.factor
index 22453ce2708770c117c946d2f80a8671804e5795..bc78ef6d5d0a967c4a522b087f30f83e96f30142 100644 (file)
@@ -1,5 +1,5 @@
 ! Copyright (C) 2011 John Benediktsson
-! See http://factorcode.org/license.txt for BSD license
+! See https://factorcode.org/license.txt for BSD license
 
 USING: accessors colors formatting http http.client images.gif
 images.http io io.styles kernel namespaces sequences splitting
@@ -15,7 +15,7 @@ SYMBOL: wolfram-api-id
 
 : query ( query -- xml )
     url-encode wolfram-api-id get-global
-    "http://api.wolframalpha.com/v2/query?input=%s&appid=%s"
+    "https://api.wolframalpha.com/v2/query?input=%s&appid=%s"
     sprintf http-get nip string>xml
     dup "error" tag-named [
         "msg" tag-named children>string throw