Skip to content

Specify an empty body for NIL bodies.#135

Open
mtstickney wants to merge 1 commit intofukamachi:masterfrom
mtstickney:wookie_empty_body
Open

Specify an empty body for NIL bodies.#135
mtstickney wants to merge 1 commit intofukamachi:masterfrom
mtstickney:wookie_empty_body

Conversation

@mtstickney
Copy link
Contributor

Wookie's docs for SEND-RESPONSE specify that it sets
Content-Length if the :body argument is specified, so we should
pass it for explicitly supplied bodies that are NIL. Without
it, Content-Length won't be set and the browser will hang
waiting for the connection to close.

Note: I just got a PR merged for wookie to fix another issue with NIL
bodies in wookie that causes the same behavior, so if you're going
to test you'll want to pull the latest wookie tip.

Wookie's docs for SEND-RESPONSE specify that it sets
Content-Length if the :body argument is specified, so we should
pass it for explicitly supplied bodies that are NIL. Without
it, Content-Length won't be set and the browser will hang
waiting for the connection to close.
@coveralls
Copy link

coveralls commented Jun 26, 2016

Coverage Status

Coverage remained the same at 90.665% when pulling 36cd19e on mtstickney:wookie_empty_body into 84d49a9 on fukamachi:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants