rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* rack-contrib: add Rack::ContentLength
@ 2010-02-06  1:13 Gaius
  2010-02-06  5:04 ` Martin
  0 siblings, 1 reply; 3+ messages in thread
From: Gaius @ 2010-02-06  1:13 UTC (permalink / raw)
  To: Rack Development

I added a Rack::ContentLength middleware that automatically sets the
"Content-Length" header for responses that (a) lack such a header and
(b) have String bodies. The relevant commits are here:

http://github.com/jamesarosen/rack-contrib/commit/77d708727682a25329deaa3122fd52a9e78e15df
and here:
http://github.com/jamesarosen/rack-contrib/commit/40775deb36a792096cb3120713254be61d4c58fb

As best I could tell, this functionality does not exist elsewhere. If
it does, please let me know.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-06 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06  1:13 rack-contrib: add Rack::ContentLength Gaius
2010-02-06  5:04 ` Martin
2010-02-06 14:22   ` Gaius

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).