aboutsummaryrefslogtreecommitdiff
path: root/ratelimited
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-12 15:53:20 +0100
committerMinteck <contact@minteck.org>2021-12-12 15:53:20 +0100
commitaac76bfbc5c19824d0d84c77948fc628fa6f9902 (patch)
tree4656862cb10ac812c7113b459cb6aa98a15dec08 /ratelimited
parenta985b2769f6c3dc907b57841134a293842c06fa6 (diff)
downloadwolfeye-php-aac76bfbc5c19824d0d84c77948fc628fa6f9902.tar.gz
wolfeye-php-aac76bfbc5c19824d0d84c77948fc628fa6f9902.tar.bz2
wolfeye-php-aac76bfbc5c19824d0d84c77948fc628fa6f9902.zip
Commit
Diffstat (limited to 'ratelimited')
-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);