Permalink
Browse files

Avoid warning due to 'headers=' being redefined

Do not use 'attr_accessor' with @headers variable, use 'attr_reader'
instead. Otherwise, there is warning for 'headers=' method being
refined, as there is already a method for setting the @headers variable.
  • Loading branch information...
Juanmcuello committed Oct 26, 2017
1 parent 6d3b08d commit bdbf254eca6ff59e5a83d9969db7c5462e06ed61
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/goliath/response.rb
View
@@ -13,7 +13,7 @@ class Response
attr_accessor :status
# The headers to send
- attr_accessor :headers
+ attr_reader :headers
# The body to send
attr_accessor :body

0 comments on commit bdbf254

Please sign in to comment.