aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-09-18 23:24:27 +0000
committeranekos2010-09-18 23:24:27 +0000
commita77f460b3dc8829cd81effaae27e764fb6d21851 (patch)
tree6b4a08eee1727d45af19bf9e1f4efc2511769008
parent5ef00fc7d86fac8720a2bbbb8ed23c3bf6db1542 (diff)
downloadvimperator-plugins-a77f460b3dc8829cd81effaae27e764fb6d21851.tar.bz2
start がよばれるたびに path が変化していってしまうバグをBUKKOROSIた
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38490 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-xtwittperator.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/twittperator.js b/twittperator.js
index b008a71..7acc1f7 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -1265,17 +1265,18 @@ let PLUGIN_INFO =
startTime = new Date();
let useProxy = !!setting.proxyHost;
+ let requestPath = path;
if (params)
- path += '?' + tw.buildQuery(params);
+ requestPath += '?' + tw.buildQuery(params);
- let authHeader = tw.getAuthorizationHeader("http://" + host + path);
+ let authHeader = tw.getAuthorizationHeader("http://" + host + requestPath);
if (useProxy)
- path = "http://" + host + path;
+ requestPath = "http://" + host + requestPath;
let get = [
- "GET " + path + " HTTP/1.1",
+ "GET " + requestPath + " HTTP/1.1",
"Host: " + host,
"Authorization: " + authHeader,
"Content-Type: application/x-www-form-urlencoded",
@@ -1317,6 +1318,7 @@ let PLUGIN_INFO =
restartCount = 0;
let data = sis.read(len);
+ liberator.log(name + ':\n' + data);
let lines = data.split(/\r\n|[\r\n]/);
if (lines.length >= 2) {
lines[0] = buf + lines[0];