[REST] fix headersonly flag for BINARY responses