search for: request_too_big

Displaying 1 result from an estimated 1 matches for "request_too_big".

2007 Mar 16
0
cancel running request
...and send a response, instead of waiting? currently i have these 2 methods: def request_begins(params) return unless params[Mongrel::Const::REQUEST_METHOD] == ''POST'' req_size = params[Mongrel::Const::CONTENT_LENGTH].to_i || 0 if req_size > MAX_REQUEST_SIZE @request_too_big = true else @request_too_big = false end end def process(request, response) if @request_too_big response.start(413, true) do |head,out| out << "Request too big, probably you are trying to upload a file that is too big" end end end tn...