From c578d520bbacfcaefd149f1397fe49474a1217b7 Mon Sep 17 00:00:00 2001 From: Tasos Laskos Date: Wed, 18 Jan 2017 16:33:09 +0200 Subject: [PATCH] HTTP::Response#headers_string=: Recode string --- lib/arachni/http/response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arachni/http/response.rb b/lib/arachni/http/response.rb index 2a67eb8251..e908746c82 100644 --- a/lib/arachni/http/response.rb +++ b/lib/arachni/http/response.rb @@ -122,7 +122,7 @@ def redirect? alias :redirection? :redirect? def headers_string=( string ) - @headers_string = string.freeze + @headers_string = string.to_s.recode.freeze end # @note Depends on the response code.