I think I've got it.  It's actually a bug in httpcore 4.0-beta2.  I've raised https://issues.apache.org/jira/browse/HTTPCORE-170, which has the details.