Skip to content

Fix headers overriding in RequestBase -> get_headers()#601

Merged
MarshalX merged 1 commit into
mainfrom
fix-headers-overriding
Apr 19, 2025
Merged

Fix headers overriding in RequestBase -> get_headers()#601
MarshalX merged 1 commit into
mainfrom
fix-headers-overriding

Conversation

@MarshalX
Copy link
Copy Markdown
Owner

fixes #600

@MarshalX MarshalX requested a review from Copilot April 18, 2025 23:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses issue #600 by correcting the header overriding behavior in RequestBase.get_headers(). The updates include adding comprehensive tests to verify case-insensitive header handling and refactoring header normalization and denormalization in the request module.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/test_atproto_client/client/test_request.py Added tests to ensure header case-insensitivity for various header operations.
packages/atproto_client/request.py Updated get_headers to normalize headers before merging, ensuring proper overriding and consistent casing.

@MarshalX MarshalX merged commit bedd158 into main Apr 19, 2025
25 checks passed
@MarshalX MarshalX deleted the fix-headers-overriding branch April 19, 2025 00:05
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.

REGRESSION: session refresh broken

2 participants