mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 06:45:53 +08:00
Fix host_type comparison
host_type values are lowercase. This fixes a 404 error (because it attempts to upload to /rr_upload) when sending G-code to Octoprint.
This commit is contained in:
parent
98fca9090b
commit
8cd25fd7e9
@ -1852,7 +1852,7 @@ sub send_gcode {
|
|||||||
my $filename = basename($self->{print}->output_filepath($main::opt{output} // ''));
|
my $filename = basename($self->{print}->output_filepath($main::opt{output} // ''));
|
||||||
my $res;
|
my $res;
|
||||||
if($self->{config}->print_host){
|
if($self->{config}->print_host){
|
||||||
if($self->{config}->host_type eq 'Octoprint'){
|
if($self->{config}->host_type eq 'octoprint'){
|
||||||
$res = $ua->post(
|
$res = $ua->post(
|
||||||
"http://" . $self->{config}->print_host . "/api/files/local",
|
"http://" . $self->{config}->print_host . "/api/files/local",
|
||||||
Content_Type => 'form-data',
|
Content_Type => 'form-data',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user