diff options
author | anekos | 2011-12-30 14:43:19 +0900 |
---|---|---|
committer | anekos | 2011-12-30 14:43:19 +0900 |
commit | cd582a0a2b4cd727ef080072233591d9406e7279 (patch) | |
tree | 71ff0bc8d3bc7c8e17a271fa51ca5cc43566a98b | |
parent | 37fd880cfe8371e37b88627a55b0905a02e819cf (diff) | |
download | vimperator-plugins-cd582a0a2b4cd727ef080072233591d9406e7279.tar.bz2 |
libly.Requestにmimeオプションを追加するやつ
from: https://gist.github.com/1538081
-rw-r--r-- | _libly.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |