perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

fix for issue 911 and 966 #1173

Open xjh33445566 opened 4 years ago

xjh33445566 commented 4 years ago

I just do some simple code to fullfill the feature request. Hope this code can do some help for you.

lepe commented 2 years ago

PR merged into/solved in the unofficial build - Release 2+

AN3Orik commented 1 year ago

Sorry, but this is bull**it. Why json type by default? That's broke any template engine integration out-of-box.

AN3Orik commented 1 year ago

This commit also broke logic where application already have content-type redefentions for POST requests. For example: jQuery ajax parse result depend on Content-Type received from controller. + default auto detection content type by extension making to use this fork impossible for projects where spark used more than just for hold REST requests.

Not to mention about sneaky Configuration outside Spark class.