/*! lil-http - v0.1 - MIT License - https://github.com/lil-js/http */
(function(e,t){if(typeof define==="function"&&define.amd){define(["exports"],t)}else if(typeof exports==="object"){t(exports);if(typeof module==="object"&&module!==null){module.exports=exports=exports.http}}else{t(e.lil=e.lil||{})}})(this,function(e){var t="0.1.0";var n=Object.prototype.toString;var r=Array.prototype.slice;var o=location.origin;var a=/^(http[s]?:\/\/[a-z0-9\-\.\:]+)[\/]?/i;var i={method:"GET",timeout:30*1e3,auth:null,headers:null,async:true,withCredentials:false,responseType:"text"};function u(e){return e&&n.call(e)==="[object Object]"}function s(e){return e&&n.call(e)==="[object Array]"}function f(e){var t,n,o,a,i=r.call(arguments).slice(1);for(t=0,n=i.length;t<n;t+=1){a=i[t];for(o in a)if(a.hasOwnProperty(o)){e[o]=a[o]}}return e}function p(e,t){if(u(t)){t["Content-Type"]=t["Content-Type"]||b.defaultContent;for(var n in t){e.setRequestHeader(n,t[n])}}}function c(e){var t={},n=e.getAllResponseHeaders().split("\n");n.forEach(function(e){if(e){e=e.split(":");t[e[0].trim()]=(e[1]||"").trim()}});return t}function d(e){var t,n=e.getResponseHeader("Content-Type");if(e.responseType==="text"){t=e.responseText;if(n==="application/json")t=JSON.parse(t)}else{t=e.response}return t}function v(e){return{xhr:e,status:e.status,data:d(e),headers:c(e)}}function y(e,t){var n=v(e);n.error=t;return n}function h(e,t){var n=false;return function(r){if(!n){t(y(e,r),null);n=true}}}function m(e,t){return function(){if(e.readyState===4){if(e.status>=200&&e.status<300){t(null,v(e))}else{t(v(e),null)}}}}function T(e){var t=e.match(a);return t&&t[1]===o}function g(e){var t=null;var n=(e.method||"GET").toUpperCase();var r=e.auth||{};var o=e.url;if(T(o)){if(typeof XDomainRequest!=="undefined"){t=new XDomainRequest}}else{t=new XMLHttpRequest}t.open(n,o,e.async,r.user,r.password);t.withCredentials=e.withCredentials;t.responseType=e.responseType;t.timeout=e.timeout;p(t,e.headers);return t}function x(e,t){return function(e){if(evt.lengthComputable){t(e,evt.loaded/evt.total)}else{t(e)}}}function C(e,t,n){var r=g(e);var o=u(e.data)||s(e.data)?JSON.stringify(e.data):e.data;var a=h(r,t);r.onload=m(r,t);r.onerror=a;r.ontimeout=a;r.onabort=a;if(typeof n==="function")r.onprogress=x(r,n);try{r.send(o)}catch(i){a(i)}return r}function E(e){return function(e,t,n,o){var a=f({},i);var s=r.call(arguments);var p,c=null;for(p=0,l=s.length;p<l;p+=1){c=s[p];if(typeof c==="function"){n=c;if(n!==c)o=c}else if(u(c)){f(a,c)}else if(typeof c==="string"){a.url=c}}return C(a,n,o)}}function b(e,t,n,r){return E("GET").apply(null,arguments)}b.VERSION=t;b.defaults=i;b.defaultContent="text/plain";b.get=E("GET");b.post=E("POST");b.put=E("PUT");b.del=E("DELETE");b.patch=E("PATCH");b.head=E("HEAD");return e.http=b});
//# sourceMappingURL=http.min.js.map
@@ -325,17 +325,17 @@
  t=%220.1.
-0
+1
 %22;var n=

add code climate badge