anchor.diff:      ok.
   
   hostname_parsing_test() ->
  -    Urls = ["http://host:1025",
  +    Urls = [" \t\r\nhttp://host:1025\n\r\t ",
               "http://host:100",
               "http://host:100000",
               "hTTp://host:8000",
  
positive.code:                        {"127.0.0.1", 6000},
                         {error, [<<"Port must be a number.">>]},
                         {error, [<<"The hostname is malformed.">>]},
                         {error, [<<"Hostname is required.">>]}],
  
      Results = [(catch parse_hostname(X)) || X <- Urls],
  
negative.code:                                  throw({error, [<<"The hostname is malformed.">>]})
                           end,
  
      {Host, menelaus_util:parse_validate_port_number(StringPort)}.
  
  handle_add_node(Req) ->
      do_handle_add_node(Req, undefined).
  