From 8cd25fd7e99cfca0827c3489aaf65f8b7ca13036 Mon Sep 17 00:00:00 2001 From: Chow Loong Jin Date: Sat, 17 Jun 2017 18:00:23 +0800 Subject: [PATCH] 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. --- lib/Slic3r/GUI/Plater.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 1139251c4..d9f1fb729 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1852,7 +1852,7 @@ sub send_gcode { my $filename = basename($self->{print}->output_filepath($main::opt{output} // '')); my $res; if($self->{config}->print_host){ - if($self->{config}->host_type eq 'Octoprint'){ + if($self->{config}->host_type eq 'octoprint'){ $res = $ua->post( "http://" . $self->{config}->print_host . "/api/files/local", Content_Type => 'form-data',