]> source.dussan.org Git - redmine.git/commitdiff
Merged r11371 from trunk (#13165).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Mar 2013 18:22:03 +0000 (18:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Mar 2013 18:22:03 +0000 (18:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.2-stable@11593 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/mail_handler/rdm-mailhandler.rb

index 42622e7081037a0c197b43f5883117268a4a6a67..be28994357d623b6caa8f121d3c3c1cc0aff1f7b 100644 (file)
@@ -10,8 +10,8 @@ module Net
     def self.post_form(url, params, headers, options={})
       request = Post.new(url.path)
       request.form_data = params
-      request.basic_auth url.user, url.password if url.user
       request.initialize_http_header(headers)
+      request.basic_auth url.user, url.password if url.user
       http = new(url.host, url.port)
       http.use_ssl = (url.scheme == 'https')
       if options[:no_check_certificate]
@@ -23,7 +23,7 @@ module Net
 end
 
 class RedmineMailHandler
-  VERSION = '0.2'
+  VERSION = '0.2.1'
 
   attr_accessor :verbose, :issue_attributes, :allow_override, :unknown_user, :no_permission_check, :url, :key, :no_check_certificate