micha/resty — Issue #28: Requests that return "<url> malformed" also return last request's response
Author: BigBlueHat
Created: 2011-10-17 19:23:38+00:00
State: open

If you:

```
resty http://localhost:5984
GET /test
```

It returns the expected result (information about the CouchDB database I'm getting info about).

However, if I do that, and then type it again--forgetting the opening slash:

```
GET test
```

I get:

```
* malformed
* malformed
* getaddrinfo(3) failed for test:80
* Couldn't resolve host 'test'
* Closing connection #0
* About to connect() to localhost port 5984 (#0)
* Trying 127.0.0.1... connected
```
and the remainder (headers and content) of my earlier request.

What I'd expect is the "Couldn't resolve host 'test'" response.

Thanks.