Skip to content

Commit

Permalink
use null stream
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jan 9, 2025
1 parent d4ab5be commit 9414306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/odr/http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <odr/filesystem.hpp>
#include <odr/html.hpp>
#include <odr/html_service.hpp>
#include <odr/internal/common/null_stream.hpp>
#include <odr/internal/html/document.hpp>
#include <odr/internal/html/pdf2htmlex_wrapper.hpp>
#include <odr/internal/pdf_poppler/poppler_pdf_file.hpp>
Expand Down Expand Up @@ -90,7 +91,7 @@ class HttpServer::Impl {
throw std::runtime_error("Unsupported file type");
}

std::ofstream null;
internal::common::NullStream null;
HtmlResources resources = html_service.write_document(null);

m_server.Get("/" + id, [id](const httplib::Request & /*req*/,
Expand Down

0 comments on commit 9414306

Please sign in to comment.