mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
NEW: add Client-Name to http header
Change-Id: Ib2d4a2fd6262e833a8237d065d705ce6bad4e735 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
@@ -2127,6 +2127,7 @@ std::map<std::string, std::string> GUI_App::get_extra_header()
|
|||||||
{
|
{
|
||||||
std::map<std::string, std::string> extra_headers;
|
std::map<std::string, std::string> extra_headers;
|
||||||
extra_headers.insert(std::make_pair("X-BBL-Client-Type", "slicer"));
|
extra_headers.insert(std::make_pair("X-BBL-Client-Type", "slicer"));
|
||||||
|
extra_headers.insert(std::make_pair("X-BBL-Client-Name", SLIC3R_APP_NAME));
|
||||||
extra_headers.insert(std::make_pair("X-BBL-Client-Version", VersionInfo::convert_full_version(SLIC3R_VERSION)));
|
extra_headers.insert(std::make_pair("X-BBL-Client-Version", VersionInfo::convert_full_version(SLIC3R_VERSION)));
|
||||||
#if defined(__WINDOWS__)
|
#if defined(__WINDOWS__)
|
||||||
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "windows"));
|
extra_headers.insert(std::make_pair("X-BBL-OS-Type", "windows"));
|
||||||
|
|||||||
Reference in New Issue
Block a user