linaGirl / ee-soa-transport-rest

restful transport implementation for ee-soa
0 stars 0 forks source link

Language header _must_ not be mandatory #11

Open linaGirl opened 10 years ago

linaGirl commented 10 years ago

If the header is not provided, the defaultLanguage of the website should be used instead (if possible).

if you load a website (e.g. cornercard-frontend) into the transport you can read the config using the «getConfig» method from it. there should be a key «defaultLanguage».

(facebook doesn't set any headers when requesting content)

rcky commented 10 years ago

As far as I can tell, the rest-transport is not aware of the actual website. We may add a middleware which takes care of it, I'll have a look.