Merge pull request #134 from ethanis/master · sourcelevel/faraday-http-cache@5408176 · GitHub
Skip to content

Commit 5408176

Browse files
authored
Merge pull request #134 from ethanis/master
Add http reason phrase to cache
2 parents 3f1bf70 + 1bb0e7b commit 5408176

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎lib/faraday/http_cache.rb‎

Lines changed: 2 additions & 1 deletion

‎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

‎spec/response_spec.rb‎

Lines changed: 5 additions & 1 deletion

0 commit comments

Comments
 (0)