Fixed SSL/TLS incompatability in API Response. See #37
Fixed SSL/TLS incompatability in API Response. See #37

--- a/lib/API.php
+++ b/lib/API.php
@@ -207,7 +207,7 @@
 
 $op = $padding.$opDivider.ob_get_clean().$opDivider.$endpadding;
 
-if (!BTMain::getConnTypeSSL()){
+if (!BTMain::getConnTypeSSL() || BTMain::getConf()->forceTLS){
 $op = base64_encode($crypt->xorestring(base64_encode($op),$tlskey));
 }