Way to Edit Header in JSON file?
I'm trying to load my json file into the feed url and continually keep getting the "The server returned an unsupported content type. Was expecting 'application/rss+xml', 'text/xml', 'application/xml' or 'application/json' but received 'text/html'" error.
My json url is located at http://fff.infinityfreeapp.com/wp-json/tv/roku/
I suspect the problem has to do with the header content-type. The json file my plugin generates is "application/json; charset=UTF-8." Would the addition of charset=UTF-8 to the content-type line cause this issue? If so, how do I eliminate it from the header of my json file?
Thanks for any help you can give me.
I was able to fix this problem by using Amazon S3 to host my json file. When uploading the file to my Amazon S3 bucket, it allows you to designate the content-type to application/json, which Roku needs to ingest your file.
Special thanks to Baradanikto for the tip.