Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove range headers, and write status code before writing the body #932

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Dec 8, 2022

No description provided.

@jsoriano jsoriano requested a review from a team December 8, 2022 14:16
@jsoriano jsoriano self-assigned this Dec 8, 2022
@@ -43,15 +41,14 @@ func (resolver storageResolver) pipeRequestProxy(w http.ResponseWriter, r *http.
// Set headers before setting the body. If not, first call to w.Write will
// add some default values.
addRequestHeadersToResponse(w, resp)
w.WriteHeader(resp.StatusCode)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case, according to docs the status code should be written before writing the body.

@elasticmachine
Copy link

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-12-08T14:17:09.135+0000

  • Duration: 5 min 13 sec

Test stats 🧪

Test Results
Failed 0
Passed 244
Skipped 0
Total 244

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@jsoriano jsoriano merged commit 5d605ae into elastic:main Dec 8, 2022
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