Skip to content

Conversation

@parkerduckworth
Copy link
Member

@parkerduckworth parkerduckworth commented Dec 17, 2025

Adds the X-Weaviate-Client header to all HTTP requests to the Weaviate server, as required by the server.

Changes

  • Added X-Weaviate-Client header in _ConnectionBase.__init__ to ensure it's included in all HTTP requests
  • Header format: weaviate-client-python/{version}-{sync|async}[-embedded]
    • Includes the client version
    • Indicates sync or async connection type
    • Appends -embedded suffix when using embedded Weaviate

The header is set during connection initialization and automatically included in all requests made through both ConnectionSync and ConnectionAsync.

Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.36%. Comparing base (dac5bd7) to head (6bcadb1).
⚠️ Report is 69 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1909      +/-   ##
==========================================
- Coverage   86.56%   86.36%   -0.20%     
==========================================
  Files         273      274       +1     
  Lines       19777    19953     +176     
==========================================
+ Hits        17120    17233     +113     
- Misses       2657     2720      +63     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants