--- flattr.module.O	2012-03-02 23:36:33.864064906 +0100
+++ flattr.module	2012-03-02 23:38:12.034534574 +0100
@@ -241,12 +241,13 @@
 
   // Having more than one flattr button on an entity wouldn't make sense, so we only touch delta 0
   // @todo Does this need to be documented better?
+  $scheme = (!empty($_SERVER['HTTPS']) ? 'https' : 'http');
   $element = array(
     0 => array(
       '#markup' => $output,
       '#attached' => array(
         'js' => array(
-          'http://api.flattr.com/js/0.6/load.js?mode=auto' => array(
+          $scheme . '://api.flattr.com/js/0.6/load.js?mode=auto' => array(
             'type' => 'external',
           ),
         ),
