Skip to content

Commit 793090a

Browse files
author
Michael Hoisie
committed
Removed some dead code and print statements
1 parent 4f371e6 commit 793090a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scgi.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ func readScgiRequest(buf *bytes.Buffer) (*Request, os.Error) {
8686

8787
content := data[len(data)-clen:]
8888

89-
println("clen", clen, len(content))
90-
9189
fields := bytes.Split(data[0:len(data)-clen], []byte{0}, 0)
9290

9391
for i := 0; i < len(fields)-1; i += 2 {
@@ -97,9 +95,6 @@ func readScgiRequest(buf *bytes.Buffer) (*Request, os.Error) {
9795
}
9896

9997
body := bytes.NewBuffer(content)
100-
//var body bytes.Buffer
101-
//body.Write(content)
102-
10398
req := newRequestCgi(headers, body)
10499

105100
return req, nil
@@ -118,7 +113,7 @@ func handleScgiRequest(fd io.ReadWriteCloser) {
118113
read := n
119114
length, _ := strconv.Atoi(string(tmp[0:colonPos]))
120115
buf.Write(tmp[0:n])
121-
println("read", n)
116+
122117
for read < length {
123118
n, err := fd.Read(&tmp)
124119
if err != nil || n == 0 {

0 commit comments

Comments
 (0)