Skip to content

Conversation

@tsl0922
Copy link
Contributor

@tsl0922 tsl0922 commented Jun 23, 2017

We can't change the http status code here, because the response has been written.

Also, this causes a HTTP 500 access log by Macaron, but the actual code sent to the client is 200.

This issue can be reproduced with git clone --depth=1 <http clone url> on any repositories.

@lunny lunny added the type/bug label Jun 23, 2017
@lunny lunny added this to the 1.2.0 milestone Jun 23, 2017
We can't change the http status code here, because the response has been written.
@ethantkoenig
Copy link
Member

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jun 28, 2017
@lunny
Copy link
Member

lunny commented Jun 28, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 28, 2017
@lunny lunny merged commit d389ed2 into go-gitea:master Jun 28, 2017
@tsl0922 tsl0922 deleted the patch-1 branch June 28, 2017 06:13
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants