Skip to content

Commit

Permalink
Fix that passes the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluidinfo developers - ntoll committed Feb 9, 2011
1 parent aad1dc6 commit 04ab766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fluiddb.py
Expand Up @@ -81,6 +81,10 @@ def call(method, path, body=None, mime=None, tags=[], custom_headers={}, **kw):
headers = global_headers.copy()
if custom_headers:
headers.update(custom_headers)
# make sure the path is a string for the following elif check for PUT
# based requests
if isinstance(path, list):
path = '/'+'/'.join(path)
# Make sure the correct content-type header is sent
if isinstance(body, dict):
# jsonify dicts
Expand Down

0 comments on commit 04ab766

Please sign in to comment.