Respect RET parameter.

If dsn requested is for HDRS just put in only the headers info.
Include headers in dsn.
Merge pull request #330 from snimmagadda/ret

Respect RET parameter.