Consider APPENGINE_RPC_USE_SID env variable
This has no effect in AppScale, so there's no reason to keep the
diff. This was introduced in the 1.4.2 SDK.
@@ -255,6 +255,9 @@ class AbstractRpcServer(object):
response_body = response.read()
response_dict = dict(x.split("=")
for x in response_body.split("\n") if x)
+ if os.getenv("APPENGINE_RPC_USE_SID", "0") == "1":
+ self.extra_headers["Cookie"] = (
+ 'SID=%s; Path=/;' % response_dict["SID"])
return response_dict["Auth"]
except urllib2.HTTPError, e:
if e.code == 403:
