Fixed the problem when you have multiple server names from which you access JIRA (i.e. localhost and 127.0.0.1). Tested only locally.
Merge remote-tracking branch 'origin/master'