OSDN Git Service

Fix MIME type handling for badly-behaved servers.
authorIain Merrick <husky@google.com>
Thu, 6 Jan 2011 16:31:24 +0000 (16:31 +0000)
committerIain Merrick <husky@google.com>
Fri, 7 Jan 2011 12:27:33 +0000 (12:27 +0000)
commitfb57cd2392293fed70fd4a7aebabb5b52ef5c41e
treeed4d1b8b2fcbe643c77675f937f56635f51f95a2
parent21d8d81a756ca7e60b5131e5f1006f52799179b0
Fix MIME type handling for badly-behaved servers.

This fixes http://scrabb.ly, which is a particularly bad example as
there is no filename and no Content-Type header. This CL duplicates
the behaviour of the Apache HTTP stack by defaulting to text/html.

Bug: 3242012
Change-Id: Id0e131ee880466e1708367612ac0217d43db347b
WebKit/android/WebCoreSupport/WebResponse.cpp