Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix that passes the unit test

  • Loading branch information...
commit 04ab766fd88f5848c5f48c74834ed0351013f4e3 1 parent aad1dc6
Fluidinfo developers - ntoll authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 fluiddb.py
4 fluiddb.py
@@ -81,6 +81,10 @@ def call(method, path, body=None, mime=None, tags=[], custom_headers={}, **kw):
81 81 headers = global_headers.copy()
82 82 if custom_headers:
83 83 headers.update(custom_headers)
  84 + # make sure the path is a string for the following elif check for PUT
  85 + # based requests
  86 + if isinstance(path, list):
  87 + path = '/'+'/'.join(path)
84 88 # Make sure the correct content-type header is sent
85 89 if isinstance(body, dict):
86 90 # jsonify dicts

0 comments on commit 04ab766

Please sign in to comment.
Something went wrong with that request. Please try again.