Fix generation for methods with abnormal page token conventions (#330)
* Fix generation for methods with abnormal page token conventions
Addresses https://github.com/googleapis/toolkit/issues/692
diff --git a/googleapiclient/http.py b/googleapiclient/http.py
index aece933..4330f26 100644
--- a/googleapiclient/http.py
+++ b/googleapiclient/http.py
@@ -817,6 +817,7 @@
if 'content-length' not in self.headers:
self.headers['content-length'] = str(self.body_size)
# If the request URI is too long then turn it into a POST request.
+ # Assume that a GET request never contains a request body.
if len(self.uri) > MAX_URI_LENGTH and self.method == 'GET':
self.method = 'POST'
self.headers['x-http-method-override'] = 'GET'