summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-14 17:52:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-14 17:52:37 +0000
commitf77edce621c6841c507ed3925ce04d01f2ad986b (patch)
tree002ec12d52dc5c14b2a098377c244c6e07a986a7 /extra
parentafaab7d43fdb7c586c03a3ce38fe20072163cf2d (diff)
downloadredmine-f77edce621c6841c507ed3925ce04d01f2ad986b.tar.gz
redmine-f77edce621c6841c507ed3925ce04d01f2ad986b.zip
Fixed thatinitialize_http_header overrides basic auth in rdm-mailhandler.rb (#13165).
Patch by Jean-Louis Fuchs. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11371 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r--extra/mail_handler/rdm-mailhandler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb
index d84042260..d04dd4151 100644
--- a/extra/mail_handler/rdm-mailhandler.rb
+++ b/extra/mail_handler/rdm-mailhandler.rb
@@ -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