Open GoogleCodeExporter opened 9 years ago
P.S. I think the reason this is broken is because
GData::Client::Calendar#make_request is obviously wrong.
It claims to want to do a redirect, but the new request is to the exact same
original
url.
def make_request(method, url, body = '', retries = 4)
response = super(method, url, body)
if response.status_code == 302 and retries > 0
@session_cookie = response.headers['set-cookie']
return self.make_request(method, url, body,
retries - 1)
else
return response
end
end
E.g., should be something like
@session_cookie = response.headers['set-cookie']
redirect_url = response.headers['location']
return self.make_request(method, redirect_url, body,
retries - 1)
Original comment by john.g.norman@gmail.com
on 29 Apr 2010 at 2:52
Original issue reported on code.google.com by
john.g.norman@gmail.com
on 29 Apr 2010 at 2:34