Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcPMS committed Feb 6, 2025
1 parent 8d124bb commit 165f85a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AppInstallerCommonCore/HttpClientHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ namespace AppInstaller::Http
return response.extract_json().get();
}

[[noreturn]] void HttpClientHelper::RethrowAsWilException(web::http::http_exception& exception)
[[noreturn]] void HttpClientHelper::RethrowAsWilException(const web::http::http_exception& exception)
{
THROW_WIN32_MSG(exception.error_code().value(), "%hs", exception.what());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace AppInstaller::Http
web::http::client::http_client GetClient(const utility::string_t& uri) const;

// Translates a cpprestsdk http_exception to a WIL exception.
static void RethrowAsWilException(web::http::http_exception& exception);
static void RethrowAsWilException(const web::http::http_exception& exception);

std::shared_ptr<web::http::http_pipeline_stage> m_defaultRequestHandlerStage;
web::http::client::http_client_config m_clientConfig;
Expand Down

0 comments on commit 165f85a

Please sign in to comment.