aboutsummaryrefslogtreecommitdiff
path: root/ratelimited/answer.php
diff options
context:
space:
mode:
Diffstat (limited to 'ratelimited/answer.php')
-rw-r--r--ratelimited/answer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratelimited/answer.php b/ratelimited/answer.php
index 8bc9707..d44b978 100644
--- a/ratelimited/answer.php
+++ b/ratelimited/answer.php
@@ -88,7 +88,7 @@ if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/private/answers/" . str_replace("
} else {
$ds = "online";
$ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://api.wolframalpha.com/v1/result?appid=" . urlencode(trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/keys/wolfram"))) . "&i=" . urlencode($query));
+ curl_setopt($ch, CURLOPT_URL, "https://api.wolframalpha.com/v1/result?appid=" . urlencode(trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/keys/wolfram"))) . "&i=" . urlencode($query) . "&units=metric&timeout=10");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$data = curl_exec($ch);
curl_close($ch);