Wiki file attached issue "Server responded with 0 code"

When we try to attached a file from wiki it is giving below error

Server responded with 0 code.

Is there any solution for this,

I applied below change and it work and after that we are unable to login to git server.

Thanks
Roshan

It should be set to https: true in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml if your external_url is https://xxxx :

  ## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: example.com
    port: 443
    https: true