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.63k stars 1.56k forks source link

Fix #688: Priority of accept types is incorrect if the client specifies no q factor #1235

Open Chauncey-Xxy opened 3 years ago

Chauncey-Xxy commented 3 years ago

Try to fix #688

When IE broswer visit spark, there are some problems. It is because IE will not contains q in AcceptType. So the chosen route doesn't fit the design documentation as follows.

So I change the acceptType when I think it is from IE.