Skip to content
Snippets Groups Projects
Select Git revision
  • b1738a78ccf5768f92068a27255f9f69be1c3147
  • master default
  • feature/web-key-directory
  • refactor/clarify-response
  • version/0.10
  • bugfix/400
  • version/0.9
  • version/0.8
  • 0.10.0
  • 0.9.0
  • 0.3.0
  • 0.2.2
12 results

http_stub_helper.rb

Blame
  • Azul's avatar
    fix: #3 handle domains without A-record
    azul authored
    If a domain only has an mx record but no A record it
    will trigger a ConnectionError when attempting the
    nicknym key lookup.
    
    We need to detect and handle this in the http adapter
    already because once the exception is handled by Celluloid
    our actor will be terminated.
    
    So now we allow for handing a rescue option to the
    adapter with a string that is checked for inclusion in
    the error message. If the string is found the exception
    will be caught and the adapter returns nil.
    
    We only make use of this when checking the availability
    of nicknym so far. That should be the only http request
    going out.
    b1738a78
    History
    http_stub_helper.rb 1.15 KiB