Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit337382f

Browse files
authored
Cache response reason phrase
1 parent3f1bf70 commit337382f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎lib/faraday/http_cache.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ def create_response(env)
301301
{
302302
status:hash[:status],
303303
body:hash[:body] ||hash[:response_body],
304-
response_headers:hash[:response_headers]
304+
response_headers:hash[:response_headers],
305+
reason_phrase:hash[:reason_phrase]
305306
}
306307
end
307308

‎lib/faraday/http_cache/response.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def serializable_hash
142142
{
143143
status:@payload[:status],
144144
body:@payload[:body],
145-
response_headers:@payload[:response_headers]
145+
response_headers:@payload[:response_headers],
146+
reason_phrase:@payload[:reason_phrase]
146147
}
147148
end
148149

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp