diff Lib/IMPL/Web/HttpResponse.pm @ 256:32aceba4ee6d

corrected ViewHandlers to handle cookies and headers. Dirty hacks to handle binary data RestController doesn't deal with file extensions anymore.
author sergey
date Wed, 12 Dec 2012 04:29:50 +0400
parents 7c517134c42f
children
line wrap: on
line diff
--- a/Lib/IMPL/Web/HttpResponse.pm	Fri Dec 07 16:58:19 2012 +0400
+++ b/Lib/IMPL/Web/HttpResponse.pm	Wed Dec 12 04:29:50 2012 +0400
@@ -46,6 +46,9 @@
 	if(my $charset = $this->charset) {
 	   $q->charset($charset);
 	   binmode $out, ":encoding($charset)";
+	} else {
+	   $q->charset('');
+	   binmode $out;
 	}
 	
 	print $out $q->header(\%headers);