Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/protocols/protocol_explore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ bool protocol_explore::handle_get_block_header_context(const code& ec,
};
}

// TODO: move to system serializer.
// All modern configurable forks.
object["forks"] = boost::json::object
{
Expand Down
7 changes: 7 additions & 0 deletions src/protocols/protocol_html.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ bool protocol_html::try_dispatch_object(const request&) NOEXCEPT
return false;
}

// Accept field (RFC 7231) and ?format=<format> parameter are ignored.
// Return embedded page based on file extension only (defaulting to html).
// The content-type field is determined by the requested file extension.
void protocol_html::dispatch_embedded(const request& request) NOEXCEPT
{
const auto& pages = server_settings().explore.pages;
Expand Down Expand Up @@ -125,6 +128,10 @@ void protocol_html::dispatch_embedded(const request& request) NOEXCEPT
}
}

// Accept field (media type) and ?format=<format> parameter are ignored.
// Return requested page only if there is a path file extension (.*).
// Otherwise return the sanitized home page (configured or default).
// The content-type field is determined by the requested file extension.
void protocol_html::dispatch_file(const request& request) NOEXCEPT
{
// Empty path implies malformed target (terminal).
Expand Down
Loading