Skip to content

Commit 0cc3f9d

Browse files
Formatting.
1 parent 0d9d06c commit 0cc3f9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/protocol/http/body/streamable.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def call(stream)
127127

128128
# Ownership of the stream is passed into the block, in other words, the block is responsible for closing the stream.
129129
block.call(stream)
130-
rescue => error
131-
# If, for some reason, the block raises an error, we assume it may not have closed the stream, so we close it here:
132-
stream.close
133-
raise
130+
rescue => error
131+
# If, for some reason, the block raises an error, we assume it may not have closed the stream, so we close it here:
132+
stream.close
133+
raise
134134
end
135135

136136
# Close the input. The streaming body will eventually read all the input.

releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Introduce `Header::*.parse(value)` which converts a string representation to a header instance.
5+
- Introduce `Header::*.parse(value)` which converts a string representation to a header instance.
66
- Introduce `Header::*.coerce(value)` which converts a rich representation (e.g. `Array`) to a header instance.
77
- `Header::*#initialize` still implements parse-like behaviour, but it's considered deprecated.
88
- Update `Headers#[]=` to use `parse(value)` for conversion. This provides better symmetry with `Headers#[]`.

0 commit comments

Comments
 (0)