From: flyerhzm <flyerhzm@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: response is empty
Date: Sun, 16 Aug 2009 08:19:30 -0700 (PDT) [thread overview]
Message-ID: <d68a566a-bd5e-46e2-889e-06971f710cbe@v36g2000yqv.googlegroups.com> (raw)
I wrote a middleware in rails. The codes is like:
def initialize(app)
@app = app
end
def call(env)
status, headers, response = @app.call(env)
return [status, headers, response] if response.empty?
# other logic codes
end
When I refresh the page, the response will be empty. So I puts
response.inspect, it's an empty array. Why?
So the other logic codes will not run, which need response.body. Is it
some reason about cache? How can I make response always not empty?
next reply other threads:[~2009-08-16 15:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-16 15:19 flyerhzm [this message]
2009-08-17 21:41 ` response is empty Hongli Lai
2009-08-18 1:25 ` flyerhzm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://groups.google.com/group/rack-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d68a566a-bd5e-46e2-889e-06971f710cbe@v36g2000yqv.googlegroups.com \
--to=rack-devel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).