[1242] Proper dict access to handle missing headers.

This also removes the content-disposition check. The original thinking was
that often there is no content-length when content-disposition is set, and
that we would allow that to pass even when the length of the content was
required.  Not sure this adds much so removed.