locomotivecms / steam

The rendering stack used by both Wagon and Station (new name of the engine). It includes the rack stack and the liquid drops/filters/tags.
MIT License
38 stars 59 forks source link

[FIX] Allows to get JSON request to params #162

Closed rousseldenis closed 4 years ago

rousseldenis commented 4 years ago

As header Content-Type can contain options like charset and/or boundary as further arguments, test for application/json at the beginning of the string.

e.g. : 'Content-Type: application/json; charset=utf-8'

rousseldenis commented 4 years ago

@sebastienbeau @lmignon @Cedric-Pigeon

rousseldenis commented 4 years ago

That seems to be not sufficientUPDATE: this works perfectly

rousseldenis commented 4 years ago

@did