{"pull_request":{"title":"Fixing HTTP requests to not include \"http://...\" in GET request","merged_at":null,"user":{"login":"clamprecht","id":669126,"url":"https://api.github.com/users/clamprecht","avatar_url":"https://secure.gravatar.com/avatar/14b58f465af3088cd1f7f1da2bea3707?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"14b58f465af3088cd1f7f1da2bea3707"},"created_at":"2011-12-27T21:01:47Z","review_comments":0,"state":"open","updated_at":"2011-12-27T21:01:47Z","id":632900,"patch_url":"https://github.com/flaptor/indextank-py/pull/9.patch","closed_at":null,"html_url":"https://github.com/flaptor/indextank-py/pull/9","deletions":1,"mergeable":null,"issue_url":"https://github.com/flaptor/indextank-py/issues/9","base":{"ref":"master","user":{"login":"flaptor","id":311763,"url":"https://api.github.com/users/flaptor","avatar_url":"https://secure.gravatar.com/avatar/536df899f90fc49241ad8be07173503d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"536df899f90fc49241ad8be07173503d"},"sha":"d9218b16386cd08d64849e5f2a83b88642accf42","repo":{"open_issues":4,"watchers":17,"git_url":"git://github.com/flaptor/indextank-py.git","created_at":"2010-07-17T02:30:21Z","fork":false,"updated_at":"2011-12-27T20:29:09Z","id":779979,"language":"Python","html_url":"https://github.com/flaptor/indextank-py","master_branch":null,"name":"indextank-py","description":"Python Client for the IndexTank API (v1)","url":"https://api.github.com/repos/flaptor/indextank-py","clone_url":"https://github.com/flaptor/indextank-py.git","pushed_at":"2011-12-22T20:33:47Z","forks":7,"ssh_url":"git@github.com:flaptor/indextank-py.git","owner":{"login":"flaptor","id":311763,"url":"https://api.github.com/users/flaptor","avatar_url":"https://secure.gravatar.com/avatar/536df899f90fc49241ad8be07173503d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"536df899f90fc49241ad8be07173503d"},"homepage":"http://indextank.com/documentation/python-client","svn_url":"https://github.com/flaptor/indextank-py","size":208,"private":false},"label":"flaptor:master"},"body":"The indextank python client is sending its HTTP GET requests with the full URL, instead of just the path & query part.  For example, calling list_indexes() would send this HTTP request:\r\n\r\n```code\r\nGET http://aeou.api.indextank.com/v1/indexes HTTP/1.1\r\n[HTTP headers here...]\r\n```\r\n\r\nInstead of just:\r\n\r\n```code\r\nGET /v1/indexes HTTP/1.1\r\n```\r\n\r\nThis patch fixes this by passing empty string for the scheme and netloc parameters to urlunsplit.  The current code seems to work with the production indextank server, maybe because nginx is handling the extraneous \"http://...\" part.  But when testing the REST API locally with django \"runserver\" mode, it was just causing 404s for every request.\r\n","number":9,"additions":2,"commits":1,"url":"https://api.github.com/repos/flaptor/indextank-py/pulls/9","_links":{"review_comments":{"href":"https://api.github.com/repos/flaptor/indextank-py/pulls/9/comments"},"html":{"href":"https://github.com/flaptor/indextank-py/pull/9"},"self":{"href":"https://api.github.com/repos/flaptor/indextank-py/pulls/9"},"comments":{"href":"https://api.github.com/repos/flaptor/indextank-py/issues/9/comments"}},"merged_by":null,"diff_url":"https://github.com/flaptor/indextank-py/pull/9.diff","comments":0,"head":{"ref":"master","user":{"login":"clamprecht","id":669126,"url":"https://api.github.com/users/clamprecht","avatar_url":"https://secure.gravatar.com/avatar/14b58f465af3088cd1f7f1da2bea3707?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"14b58f465af3088cd1f7f1da2bea3707"},"sha":"1e3e3af5a261d5d3e616c5ccd24160727510a777","repo":{"open_issues":0,"watchers":1,"git_url":"git://github.com/clamprecht/indextank-py.git","created_at":"2011-12-27T20:29:09Z","fork":true,"updated_at":"2011-12-27T20:38:35Z","id":3058823,"language":"Python","html_url":"https://github.com/clamprecht/indextank-py","master_branch":null,"name":"indextank-py","description":"Python Client for the IndexTank API (v1)","url":"https://api.github.com/repos/clamprecht/indextank-py","clone_url":"https://github.com/clamprecht/indextank-py.git","pushed_at":"2011-12-27T20:38:35Z","forks":0,"ssh_url":"git@github.com:clamprecht/indextank-py.git","owner":{"login":"clamprecht","id":669126,"url":"https://api.github.com/users/clamprecht","avatar_url":"https://secure.gravatar.com/avatar/14b58f465af3088cd1f7f1da2bea3707?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"14b58f465af3088cd1f7f1da2bea3707"},"homepage":"http://indextank.com/documentation/python-client","svn_url":"https://github.com/clamprecht/indextank-py","size":160,"private":false},"label":"clamprecht:master"},"changed_files":1,"merged":false},"number":9,"action":"opened"}