Fix bug with overriding shared dictionary params
Cleanup code, always set Content-Type header