Skip to content

Commit

Permalink
[BUG]: Removed defaulting HttpClient headers to empty dict (#1329)
Browse files Browse the repository at this point in the history
Refs: #1302

## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
- Removed defaulting of headers for HttpClient as this causes
differences in settings when clients are initialized from HttpClient and
Client with the same settings which raises an error

## Test plan
*How are these changes tested?*

- [x] Tests pass locally with `pytest` for python

## Documentation Changes
N/A
  • Loading branch information
tazarov authored Nov 7, 2023
1 parent 93a750d commit 37573e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chromadb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ def HttpClient(
database: The database to use for this client. Defaults to the default database.
"""

if headers is None:
headers = {}
if settings is None:
settings = Settings()

Expand Down

0 comments on commit 37573e9

Please sign in to comment.