mashupbots / socko

A Scala web server powered by Netty networking and AKKA processing.
Other
255 stars 51 forks source link

toFormDataMap incorrect handling of contentType #99

Closed gfduszynski closed 10 years ago

gfduszynski commented 10 years ago

HttpRequestMessage.scala: Line 278

Method assumes that there is no charset data included. Header Content-Type may include charset info like stated in the wiki (it's missing on EN) http://pl.wikipedia.org/wiki/Lista_nag%C5%82%C3%B3wk%C3%B3w_HTTP#Content-Type

So the value of contentType may be "application/x-www-form-urlencoded; charset=UTF-8" This causes Map.Empty result while non empty maps should be returned.