jgauffin / Griffin.WebServer

A web server built on top of Griffin.Framework
107 stars 42 forks source link

Missing Content-Type in request produce BadRequest #36

Open albertVel opened 7 years ago

albertVel commented 7 years ago

Hello,

we're experiencing issues when receiving requests from a device that doesn't indicate the Content-Type in its requests. The requests are type POST and its content is application/octet-stream

As described in https://stackoverflow.com/a/15860815 the Griffin.WebServer should not return a Bad Request. Instead should try to guess the Content Type of the content or consider it as application/octet-stream.

jgauffin commented 6 years ago

Why kind of error do you get? Can you reproduce it?