doctormo / python-gitlab3

Python wrapper for the entire GitLab API
GNU Lesser General Public License v3.0
46 stars 25 forks source link

Feature/parameters for get on url #14

Closed Ruxton closed 7 years ago

Ruxton commented 10 years ago

The default bitnami setup for Gitlab uses Apache+Passenger.

As detailed in this issue https://code.google.com/p/phusion-passenger/issues/detail?id=1069 Passenger returns a 400 as soon as a GET or HEAD request contains a request body. This means that any index that was being passed paged parameters (.projects(), .groups(), etc.) all raise an error.

This patch encodes the data to URL parameters for GET and HEAD requests so that it will work with the bitnami Gitlab VM.

doctormo commented 7 years ago

This is a reasonable addition to the code, although incomplete within the api definition, a good first step.