Permalink
Browse files

Akismet requests this format

  • Loading branch information...
1 parent bbbe96a commit f0694ee1ee291b0d5d329376683ec0349b4abb8e @joshfrench joshfrench committed Oct 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rakismet.rb
View
@@ -38,7 +38,7 @@ def version
def headers
@headers ||= begin
user_agent = "Rakismet/#{Rakismet.version}"
- user_agent += " | Rails/#{Rails.version}" if defined?(Rails)
+ user_agent = "Rails/#{Rails.version} | " + user_agent if defined?(Rails)
{ 'User-Agent' => user_agent, 'Content-Type' => 'application/x-www-form-urlencoded' }
end
end

0 comments on commit f0694ee

Please sign in to comment.