diff options
author | anekos | 2010-09-28 23:59:33 +0000 |
---|---|---|
committer | anekos | 2010-09-28 23:59:33 +0000 |
commit | 069832408e364be7deab41fe14f345cd4cbb198d (patch) | |
tree | 15dad05c6d0edd03cbb75eab4f2eb92a4144940b /twittperator.js | |
parent | 2eb00d946e5695c21982ae5935d6db6c1f1dbf72 (diff) | |
download | vimperator-plugins-069832408e364be7deab41fe14f345cd4cbb198d.tar.bz2 |
謎修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38530 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twittperator.js')
-rwxr-xr-x | twittperator.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/twittperator.js b/twittperator.js index 2f084e7..632f184 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1277,8 +1277,11 @@ let PLUGIN_INFO = let useProxy = !!setting.proxyHost; let requestPath = path; - if (params) - requestPath += '?' + tw.buildQuery(params); + if (params) { + // XXX Twitter がなぜか + を許容しない気がする(401 を返す)ので、再変換する + let query = tw.buildQuery(params).replace(/\+/g, "%20"); + requestPath += '?' + query; + } let authHeader = tw.getAuthorizationHeader("http://" + host + requestPath); |