Stop stripping newlines from batch requests

When forming a multipart/mixed HTTP request like the ones created using
the BatchHttpRequest object, the request is supposed to include two
trailing newlines to signify:

  1. The termination of the HTTP headers for each wrapped request.
  2. The empty body of the wrapped request.

Without this change some implementations of API servers were rejecting
requests generated by this client. Specifically requests which had an
empty wrapped request body.
1 file changed
tree: 6e8e184c5104ad6a106a5196926c46bea3e9afea
  1. apiclient/
  2. docs/
  3. googleapiclient/
  4. samples/
  5. static/
  6. tests/
  7. tools/
  8. .coveragerc
  9. .gitignore
  10. .gitmodules
  11. .hgignore
  12. .travis.yml
  13. CHANGELOG
  14. describe.py
  15. expandsymlinks.py
  16. LICENSE
  17. Makefile
  18. MANIFEST.in
  19. README.md
  20. samples-index.py
  21. setup.py
  22. sitecustomize.py
  23. tox.ini
README.md

About

This is the Python client library for Google's discovery based APIs. To get started, please see the full documentation for this library. Additionally, dynamically generated documentation is available for all of the APIs supported by this library.

Installation

To install, simply use pip or easy_install:

$ pip install --upgrade google-api-python-client

or

$ easy_install --upgrade google-api-python-client

See the Developers Guide for more detailed instructions and additional documentation.

Python Version

Python 2.6 or 2.7 are fully supported.

Python 3.3+ is also now supported! However, this library has not yet been used as thoroughly with Python 3, so we'd recommend testing before deploying with Python 3 in production.

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

For development you will also need the following libraries:

Contributing

Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.