-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "Content-Type: application/json; charset=utf-8" #35
Comments
Faced same issue, but there is an easy workaround to overcome it. In logstash configuration file specify |
Encountered the same bug this week - not easy to chase down and broke my QA environment for a day. https://github.com/logstash-plugins/logstash-input-http/blob/master/lib/logstash/inputs/http.rb#L154 Is this not easily addressed by parsing out the Content-Type into type/subtype and removing any subsequent parameters? Perhaps the correct fallback sequence with regard to the entries in
|
yes this should be possible with https://netty.io/4.1/api/io/netty/handler/codec/http/HttpUtil.html#getMimeType-io.netty.handler.codec.http.HttpMessage-:
Something like master...ebuildy:patch-1 |
solved by #87 |
I am using logstash 1.5.4.
If I post log message with content-type "application/json" everything works fine.
Hovever, if I use content-type "application/json; charset=utf-8" json message is not processed by logstash (probably because of fallback to plain codec).
Content type with charset specified is standard thing, I think it should be supported by logstash.
My pain is that .NET HttpClient class by default add charset to content-type, so I should explicitly customize HttpClient not to add charset to content-type.
The text was updated successfully, but these errors were encountered: