mwunsch / weary

A framework and DSL for building RESTful web service clients
MIT License
482 stars 23 forks source link

Minitest::UnexpectedError: NoMethodError: undefined method `+' for nil:NilClass #45

Open barsukov opened 10 years ago

barsukov commented 10 years ago

When you try to put code with out "host" in your url you get this error. I think this unlogical because I put my domain variable and I expected to recieved it without any problem. this occured in this place:

def http_host
  uri = @request.uri
  uri.host + (uri.normalized_port ? ":#{uri.normalized_port}" : "")
end
barsukov commented 9 years ago

PING PING )