title: Perl Fastcgi - HTTP::Message content must be bytes at
body: <p>I am getting the following errors:</p>
  <blockquote>
  <p>[Fri Feb 19 08:55:41 2016] [error] [client 172.16.30.100] FastCGI:
  server &quot;/home/admin/soap/server.fcgi&quot; stderr: HTTP::Message content
  must be bytes at
  /usr/local/lib/perl5/site_perl/5.8.9/SOAP/Transport/HTTP.pm line 317</p>
  <p>[Fri Feb 19 08:55:41 2016] [error] [client 172.16.30.100] FastCGI:
  incomplete headers (0 bytes) received from server
  &quot;/home/admin/soap/server.fcgi&quot; [Fri Feb 19 08:55:41 2016] [warn]
  FastCGI: server &quot;/home/admin/soap/server.fcgi&quot; (pid 45466) terminated
  by calling exit with status '255'</p>
  </blockquote>
  <p>Here is line 317 of HTTP.pm  I appreciate any input on a fix.</p>
  <pre><code>$self-&gt;response(HTTP::Response-&gt;new(
  $code =&gt; undef,
  HTTP::Headers-&gt;new(
      'SOAPServer' =&gt; $self-&gt;product_tokens,
       $compressed ? (
           'Content-Encoding' =&gt; $COMPRESS) : (),
           'Content-Type' =&gt; join(
               '; ',
               'text/xml', 
               !$SOAP::Constants::DO_NOT_USE_CHARSET &amp;&amp; $encoding ? 'charset=' . lc($encoding) : ()
           ),
           'Content-Length' =&gt; SOAP::Utils::bytelength $response),
       $response,
  ));
  $self-&gt;response-&gt;headers-&gt;header('Content-Type' =&gt; 'Multipart/Related;       type=&quot;text/xml&quot;; start=&quot;&lt;main_envelope&gt;&quot;; boundary=&quot;'.$is_multipart.'&quot;') if   $is_multipart; }
  </code></pre>