Rails and GWT (HTTP request setHeader problems)

I have a server in rails and the client side in GWT…I have problem
with setting the header of a request in GWT i do something like this:

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
builder.setHeader(“HTTP_IF_MODIFIED_SINCE”, “Mon Oct 15 15:38:35
+0300 2007”);

and on RUBY SERVER i do:

minTime = Time.rfc2822(request.env[‘HTTP_IF_MODIFIED_SINCE’]) rescue nil
if (minTime and @market_overview.updated_at<= minTime)
render_text ‘’, ‘304 Not Modified’
respond_to do |format|
#inti securityURL for this MO
format.xml { render :xml => (@market_overview.to_xml
:skip_types => true)}

request.env[‘HTTP_IF_MODIFIED_SINCE’] is nil…I don’t know where I do
wrong …on the client side or on the server side…Please help me if
you can…Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs