Skip to content

Conversation

@kriswallsmith
Copy link
Contributor

An exception is thrown if you prepare a StreamedResponse with a HEAD request. I'm not sure what the right fix is…

@kriswallsmith
Copy link
Contributor Author

@sstok
Copy link
Contributor

sstok commented Jun 8, 2012

Well a HEAD can't/shouldn't be streamed as it doesn't contain a body so what is the real problem here?

@kriswallsmith
Copy link
Contributor Author

@sstok the response is prepared by the ResponseListener regardless of request method

@adrienbrault
Copy link
Contributor

Shouldn't the test at least assert something ?

fabpot added a commit that referenced this pull request Jun 13, 2012
Commits
-------

280fc05 failing test for HEAD StreamedResponse requests

Discussion
----------

[WIP] failing test for HEAD StreamedResponse requests

An exception is thrown if you prepare a StreamedResponse with a HEAD request. I'm not sure what the right fix is…

---------------------------------------------------------------------------

by kriswallsmith at 2012-06-06T15:51:04Z

The Travis build is here: http://travis-ci.org/#!/symfony/symfony/builds/1543352

---------------------------------------------------------------------------

by sstok at 2012-06-08T11:07:31Z

Well a HEAD can't/shouldn't be streamed as it doesn't contain a body so what is the real problem here?

---------------------------------------------------------------------------

by kriswallsmith at 2012-06-08T16:14:18Z

@sstok the response is prepared by the ResponseListener regardless of request method

---------------------------------------------------------------------------

by adrienbrault at 2012-06-08T19:41:27Z

Shouldn't the test at least assert something ?
@fabpot fabpot closed this in 0f67ca8 Jun 13, 2012
arnaud-lb added a commit to arnaud-lb/symfony that referenced this pull request Mar 14, 2013
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.

4 participants