Writestream option "content_type" doesn't work out-of-the-box #15

Reggino opened this Issue Apr 5, 2013 · 1 comment


None yet

2 participants

Reggino commented Apr 5, 2013

The GridStore-option "content_type" doesn't work out-of-the-box for a write stream.

This is, because the option "mode" has a default value of "w+" and the passed mime_type is only honored when using mode "w".

When setting mode explicitly to "w", the content_type does work. A few questions rise:

  • Should the default write mode be "w" instead of "w+"?
  • Should an error be thrown when using { "mode": "w+" } with a configured value for "content_type"?
  • Should this be fixed in "GridStore"?

closed by 2685e89

@aheckmann aheckmann closed this Apr 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment