Skip to content
Snippets Groups Projects

Delay HTTP headers for Git HTTP responses

Merged username-removed-5302 requested to merge delayed-responsewriter into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
4 // bytes. This makes it possible, up to a point, to 'change your mind'
5 // about the HTTP status code. The caller must call
6 // ResponseWriter.Flush() before returning from the handler (e.g. using
7 // 'defer').
8
9 package delay
10
11 import (
12 "bytes"
13 "io"
14 "net/http"
15 )
16
17 const bufferSize = 8192
18
19 type ResponseWriter struct {
  • Added 1 commit:

  • Added 1 commit:

  • Thanks for the review @ayufan

  • mentioned in commit 285f47a7

  • username-removed-5302 Status changed to merged

    Status changed to merged

  • username-removed-5302 mentioned in merge request !38 (closed)

    mentioned in merge request !38 (closed)

  • mentioned in issue #36 (closed)

  • @pmq20 this change breaks Git shallow cloning, see #36 (closed). I am going to revert it.

  • Or maybe the best thing is to only buffer the response on git-receive-pack. That should avoid the problems of #36 (closed).

  • Please register or sign in to reply
    Loading