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:
Joseph Lenox 2017-06-17 15:03:53 -05:00 committed by GitHub
commit abc96ad3bf

View File

@ -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',