aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-02 02:56:26 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-02 02:56:26 +0000
commit7864d0e0120f8c7b592056ecce171c369cb1e94b (patch)
tree479d945f261fbd9894721ab9a2dcb70762a8406a /railties/configs
parentb0245a57d65c99f527cbdb4631393c88189a285b (diff)
downloadrails-7864d0e0120f8c7b592056ecce171c369cb1e94b.tar.gz
rails-7864d0e0120f8c7b592056ecce171c369cb1e94b.tar.bz2
rails-7864d0e0120f8c7b592056ecce171c369cb1e94b.zip
Added fix for upload problems with lighttpd from Safari/IE to config/lighttpd.conf (closes #3999) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/configs')
-rw-r--r--railties/configs/lighttpd.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/configs/lighttpd.conf b/railties/configs/lighttpd.conf
index 6d421c8de0..7ffe7b2ddd 100644
--- a/railties/configs/lighttpd.conf
+++ b/railties/configs/lighttpd.conf
@@ -38,3 +38,9 @@ mimetype.assign = (
".swf" => "application/x-shockwave-flash",
".txt" => "text/plain"
)
+
+# Making sure file uploads above 64k always work when using IE or Safari
+# Form more information, see http://trac.lighttpd.net/trac/ticket/360
+$HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
+ server.max-keep-alive-requests = 0
+} \ No newline at end of file