Skip to content

Commit

Permalink
Updated user-agent in HTTP specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Dec 20, 2021
1 parent 4cbb43d commit 96de864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/arachni/http/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@
host = "#{Arachni::URI(@url).host}:#{Arachni::URI(@url).port}"
expect(subject.request( @url, mode: :sync ).request.headers_string).to eq(
"GET / HTTP/1.1\r\nHost: #{host}\r\nAuthorization: Basic Og==\r\nAccept-Encoding: gzip, " +
"deflate\r\nUser-Agent: Arachni/v#{Arachni::VERSION}\r\nAccept: text/html," +
"deflate\r\nUser-Agent: #{Arachni::Options.http.user_agent}\r\nAccept: text/html," +
"application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" +
"Accept-Language: en-US,en;q=0.8,he;q=0.6\r\n" +
"X-Arachni-Scan-Seed: #{Arachni::Utilities.random_seed}\r\n\r\n"
Expand Down
2 changes: 1 addition & 1 deletion spec/arachni/http/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
expect(described_class.new( url: @url ).run.request.headers_string).to eq(
"GET / HTTP/1.1\r\nHost: #{host}\r\nAuthorization: Basic Og==\r\n" +
"Accept-Encoding: gzip, deflate\r\n" +
"User-Agent: Arachni/v#{Arachni::VERSION}\r\nAccept: text/html," +
"User-Agent: #{Arachni::Options.http.user_agent}\r\nAccept: text/html," +
"application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" +
"Accept-Language: en-US,en;q=0.8,he;q=0.6\r\n\r\n"
)
Expand Down

0 comments on commit 96de864

Please sign in to comment.