mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 17:39:00 +08:00
Merge pull request #4032 from hyperair/fix-octoprint-send-gcode
Fix host_type comparison when sending G-code to octoprint
This commit is contained in:
commit
abc96ad3bf
@ -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