CC: | Павел Кудрявцев <pik [...] cheby.ru> |
Subject: | param ('PUTDATA') returns garbled binary data |
Date: | Wed, 21 May 2014 15:02:58 +0400 |
To: | bug-Cgi-Simple [...] rt.cpan.org |
From: | Maksim Gruzdev <mgruzdev [...] cheby.ru> |
Hi!
We are writing a REST application,
While uploading a file (word document)
open UPLOADED_FILE, '>upload.docx' or die;
binmode UPLOADED_FILE;
print UPLOADED_FILE $cgi_simple -> param ('PUTDATA');
close UPLOADED_FILE;
binary PUTDATA body is getting corrupt (word wouldn't open such file
anymore)
PUTDATA parameter is not corrupted with CGI.pm
Here is a patch
--
Best Regards, Maksim Gruzdev
Message body is not shown because sender requested not to inline it.