mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb/Fetch: Propagate OOM errors from HeaderList::extract_mime_type()
This commit is contained in:
parent
2d7ce38ee2
commit
ad4b4046f4
14 changed files with 36 additions and 36 deletions
|
@ -43,7 +43,7 @@ void Response::visit_edges(Cell::Visitor& visitor)
|
|||
|
||||
// https://fetch.spec.whatwg.org/#concept-body-mime-type
|
||||
// https://fetch.spec.whatwg.org/#ref-for-concept-header-extract-mime-type%E2%91%A7
|
||||
Optional<MimeSniff::MimeType> Response::mime_type_impl() const
|
||||
ErrorOr<Optional<MimeSniff::MimeType>> Response::mime_type_impl() const
|
||||
{
|
||||
// Objects including the Body interface mixin need to define an associated MIME type algorithm which takes no arguments and returns failure or a MIME type.
|
||||
// A Response object’s MIME type is to return the result of extracting a MIME type from its response’s header list.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue