From 2803594141f295c07c381fdadb67ed2e422fe7c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 07:58:14 +0000 Subject: [PATCH 1/2] fix(client): always add content-length to post body, even when empty --- lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb b/lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb index 9889d414..c87f6447 100644 --- a/lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb +++ b/lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb @@ -75,7 +75,7 @@ def build_request(request, &blk) case body in nil - nil + req["content-length"] ||= 0 unless req["transfer-encoding"] in String req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"] req.body_stream = OnebusawaySDK::Internal::Util::ReadIOAdapter.new(body, &blk) From 1687582c9d882820888a0f37bccbf1188e7d2195 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 07:58:36 +0000 Subject: [PATCH 2/2] release: 1.2.9 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/onebusaway_sdk/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2653b8f2..8d58a589 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.2.8" + ".": "1.2.9" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ef2c273..d03c5610 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.2.9 (2026-02-03) + +Full Changelog: [v1.2.8...v1.2.9](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.8...v1.2.9) + +### Bug Fixes + +* **client:** always add content-length to post body, even when empty ([2803594](https://github.com/OneBusAway/ruby-sdk/commit/2803594141f295c07c381fdadb67ed2e422fe7c7)) + ## 1.2.8 (2026-01-17) Full Changelog: [v1.2.7...v1.2.8](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.7...v1.2.8) diff --git a/Gemfile.lock b/Gemfile.lock index 5d90045d..705bbcfb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - onebusaway-sdk (1.2.8) + onebusaway-sdk (1.2.9) cgi connection_pool diff --git a/README.md b/README.md index 3d90ad8e..8f73417e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "onebusaway-sdk", "~> 1.2.8" +gem "onebusaway-sdk", "~> 1.2.9" ``` diff --git a/lib/onebusaway_sdk/version.rb b/lib/onebusaway_sdk/version.rb index 2ed5073f..df299505 100644 --- a/lib/onebusaway_sdk/version.rb +++ b/lib/onebusaway_sdk/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OnebusawaySDK - VERSION = "1.2.8" + VERSION = "1.2.9" end