aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2011-12-30 14:43:19 +0900
committeranekos2011-12-30 14:43:19 +0900
commitcd582a0a2b4cd727ef080072233591d9406e7279 (patch)
tree71ff0bc8d3bc7c8e17a271fa51ca5cc43566a98b
parent37fd880cfe8371e37b88627a55b0905a02e819cf (diff)
downloadvimperator-plugins-cd582a0a2b4cd727ef080072233591d9406e7279.tar.bz2
libly.Requestにmimeオプションを追加するやつ
from: https://gist.github.com/1538081
-rw-r--r--_libly.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/_libly.js b/_libly.js
index f811fda..db17233 100644
--- a/_libly.js
+++ b/_libly.js
@@ -14,7 +14,7 @@ var PLUGIN_INFO =
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
<author mail="anekos@snca.net" homepage="http://snca.net/">anekos</author>
<license>MIT</license>
- <version>0.1.37</version>
+ <version>0.1.38</version>
<minVersion>2.3pre</minVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/_libly.js</updateURL>
<detail><![CDATA[
@@ -561,7 +561,7 @@ libly.Request.prototype = {
}
});
this.setRequestHeaders();
- this.transport.overrideMimeType('text/html; charset=' + this.options.encoding);
+ this.transport.overrideMimeType(this.options.mimetype || 'text/html; charset=' + this.options.encoding);
this.body = this.method == 'POST' ? this.options.postBody : null;