diff --git a/server.js b/server.js
index <HASH>..<HASH> 100644
--- a/server.js
+++ b/server.js
@@ -964,7 +964,10 @@ cache(function(data, match, sendBadge) {
     try {
       var data = JSON.parse(buffer);
       var version = data.version;
-      var license = data.license;
+      var license;
+      if (typeof data.license === 'string') {
+        license = data.license;
+      } else { license = data.license.type; }
       var platforms = Object.keys(data.platforms).join(' | ');
       version = version.replace(/^v/, "");
       if (type === 'v') {
CocoaPods license can be a hashtable.

Containing the `type` field for license information.

Fixes #<I>.