Skip to content

Commit

Permalink
Merge pull request #7 from sfusato/handle_empty_string_server_host_name
Browse files Browse the repository at this point in the history
handle the case when the next_server call returns an empty string
  • Loading branch information
s3cur3 authored Jan 7, 2024
2 parents 434f505 + 8114f25 commit a62f9fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/whois.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ defmodule Whois do
nil ->
{:ok, raw}

"" ->
{:ok, raw}

^host ->
{:ok, raw}

Expand Down

0 comments on commit a62f9fc

Please sign in to comment.