From f875a855a6d6461ad5d3901d0887b6b9301fbe64 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 15:39:37 +0000 Subject: [PATCH 1/2] fix(client): send content-type header for requests with an omitted optional body --- lib/imagekitio/internal/transport/base_client.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/imagekitio/internal/transport/base_client.rb b/lib/imagekitio/internal/transport/base_client.rb index f6c722b..509622e 100644 --- a/lib/imagekitio/internal/transport/base_client.rb +++ b/lib/imagekitio/internal/transport/base_client.rb @@ -306,7 +306,10 @@ def initialize( Imagekitio::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) end - headers.delete("content-type") if body.nil? + # Generated methods always pass `req[:body]` for operations that define a + # request body, so only elide the content-type header when the operation + # has no body at all, not when an optional body param was omitted. + headers.delete("content-type") if body.nil? && !req.key?(:body) url = Imagekitio::Internal::Util.join_parsed_uri( @base_url_components, From b8ce43c43de27ba3393553a92ada215ac214b7b3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 15:40:07 +0000 Subject: [PATCH 2/2] release: 4.6.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/imagekitio/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1269f90..b20ed36 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.6.0" + ".": "4.6.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d7e11c..232bdb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.6.1 (2026-06-16) + +Full Changelog: [v4.6.0...v4.6.1](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.6.0...v4.6.1) + +### Bug Fixes + +* **client:** send content-type header for requests with an omitted optional body ([f875a85](https://github.com/imagekit-developer/imagekit-ruby/commit/f875a855a6d6461ad5d3901d0887b6b9301fbe64)) + ## [4.6.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.5.1...v4.6.0) (2026-06-03) diff --git a/Gemfile.lock b/Gemfile.lock index fdbab26..fc7ba37 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - imagekitio (4.5.1) + imagekitio (4.6.1) cgi connection_pool standardwebhooks diff --git a/README.md b/README.md index 48c86da..282b073 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "imagekitio", "~> 4.6.0" +gem "imagekitio", "~> 4.6.1" ``` diff --git a/lib/imagekitio/version.rb b/lib/imagekitio/version.rb index ed8ae2f..a5e32d3 100644 --- a/lib/imagekitio/version.rb +++ b/lib/imagekitio/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Imagekitio - VERSION = "4.6.0" + VERSION = "4.6.1" end