Skip to content

Commit d4ba207

Browse files
Revert "always use retries httpx plugin"
This reverts commit c9aad87.
1 parent 0b2b5fb commit d4ba207

File tree

1 file changed

+1
-1
lines changed
  • react_on_rails_pro/lib/react_on_rails_pro

1 file changed

+1
-1
lines changed

react_on_rails_pro/lib/react_on_rails_pro/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def connection_without_retries
9999
def perform_request(path, **post_options) # rubocop:disable Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
100100
# For streaming requests, use connection without retries to prevent body duplication
101101
# The StreamRequest class handles retries properly by starting fresh requests
102-
conn = connection
102+
conn = post_options[:stream] ? connection_without_retries : connection
103103

104104
available_retries = ReactOnRailsPro.configuration.renderer_request_retry_limit
105105
retry_request = true

0 commit comments

Comments
 (0)