Fix crashing filtered _changes request

A filtered call to _changes end-point prompts a node to
pull a peer from the received mochi request record.
This is crashing on the secondary nodes in a clustered
environment since the peer call made on a socket
that is not original for them.

The fix makes use of the fact that by the time of the request
the peer already got resolved on the coordinator node and
passed along as a part of #http record.

This closes the case COUCHDB-2785
1 file changed
tree: febbffdd82d657a7f4c2018d3fa9aad640191f6f
  1. include/
  2. priv/
  3. src/
  4. test/
  5. .gitignore
  6. LICENSE
  7. rebar.config.script