Fixed config file permission. Thanks @konstan
Use Accept header instead of Content-Type