Skip to content

Commit

Permalink
Merge pull request #170 from microsoft/chore/initialize-default-headers
Browse files Browse the repository at this point in the history
Chore/initialize default headers
  • Loading branch information
samwelkanda authored Oct 25, 2023
2 parents 1ad9d4c + 8814621 commit c26c3a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.1] - 2023-10-25

### Added

### Changed
- Initialize headers in BaseRequestConfiguration to a HeadersCollection instance

## [0.9.0] - 2023-10-10

### Added
Expand Down
2 changes: 1 addition & 1 deletion kiota_abstractions/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION: str = "0.9.0"
VERSION: str = "0.9.1"
3 changes: 2 additions & 1 deletion kiota_abstractions/base_request_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from dataclasses import dataclass
from typing import Dict, List, Optional, Union

from .headers_collection import HeadersCollection
from .request_option import RequestOption


Expand All @@ -15,7 +16,7 @@ class BaseRequestConfiguration:
Configuration for the request such as headers, query parameters, and middleware options.
"""
# Request headers
headers: Optional[Dict[str, Union[str, List[str]]]] = None
headers: HeadersCollection = HeadersCollection()

# Request options
options: Optional[List[RequestOption]] = None

0 comments on commit c26c3a7

Please sign in to comment.