Show
Ignore:
Timestamp:
09/19/10 08:24:27 (3 years ago)
Author:
anekos
Message:

start がよばれるたびに path が変化していってしまうバグをBUKKOROSIた

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/twittperator.js

    r38489 r38490  
    12661266 
    12671267      let useProxy = !!setting.proxyHost; 
     1268      let requestPath = path; 
    12681269 
    12691270      if (params) 
    1270         path += '?' + tw.buildQuery(params); 
    1271  
    1272       let authHeader = tw.getAuthorizationHeader("http://" + host + path); 
     1271        requestPath += '?' + tw.buildQuery(params); 
     1272 
     1273      let authHeader = tw.getAuthorizationHeader("http://" + host + requestPath); 
    12731274 
    12741275      if (useProxy) 
    1275         path = "http://" + host + path; 
     1276        requestPath = "http://" + host + requestPath; 
    12761277 
    12771278      let get = [ 
    1278         "GET " + path + " HTTP/1.1", 
     1279        "GET " + requestPath + " HTTP/1.1", 
    12791280        "Host: " + host, 
    12801281        "Authorization: " + authHeader, 
     
    13181319 
    13191320          let data = sis.read(len); 
     1321          liberator.log(name + ':\n' + data); 
    13201322          let lines = data.split(/\r\n|[\r\n]/); 
    13211323          if (lines.length >= 2) {