Skip to content

Commit a7bb786

Browse files
Merge pull request #621 from OneBusAway/release-please--branches--main--changes--next
release: 1.9.1
2 parents 6f22752 + 71a64ff commit a7bb786

7 files changed

Lines changed: 18 additions & 7 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.9.0"
2+
".": "1.9.1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-5f69b2b288261c7adfd9acb065dce897caf8782aff1687efe38ba52541ef7b96.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-49611a380a238e29ad714c2f6d66a35ada42e3931d2aad2839afd1f13b585de1.yml
33
openapi_spec_hash: b03acca245aef78353d3b7a6a4a62eb2
4-
config_hash: c28ddf5b7754155603d9fd1c5fcaeeff
4+
config_hash: ff7ff57d4c7f9c3f7a4f9bae39aa00e3

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.9.1 (2026-06-17)
4+
5+
Full Changelog: [v1.9.0...v1.9.1](https://github.com/OneBusAway/ruby-sdk/compare/v1.9.0...v1.9.1)
6+
7+
### Bug Fixes
8+
9+
* **client:** send content-type header for requests with an omitted optional body ([cda4fbd](https://github.com/OneBusAway/ruby-sdk/commit/cda4fbdc4803761c42392d3d270645943de81560))
10+
311
## 1.9.0 (2026-06-01)
412

513
Full Changelog: [v1.8.0...v1.9.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.8.0...v1.9.0)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
onebusaway-sdk (1.9.0)
14+
onebusaway-sdk (1.9.1)
1515
cgi
1616
connection_pool
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "onebusaway-sdk", "~> 1.9.0"
20+
gem "onebusaway-sdk", "~> 1.9.1"
2121
```
2222

2323
<!-- x-release-please-end -->

lib/onebusaway_sdk/internal/transport/base_client.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ def initialize(
309309
OnebusawaySDK::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
310310
end
311311

312-
headers.delete("content-type") if body.nil?
312+
# Generated methods always pass `req[:body]` for operations that define a
313+
# request body, so only elide the content-type header when the operation
314+
# has no body at all, not when an optional body param was omitted.
315+
headers.delete("content-type") if body.nil? && !req.key?(:body)
313316

314317
url = OnebusawaySDK::Internal::Util.join_parsed_uri(
315318
@base_url_components,

lib/onebusaway_sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OnebusawaySDK
4-
VERSION = "1.9.0"
4+
VERSION = "1.9.1"
55
end

0 commit comments

Comments
 (0)