File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,6 @@ func readScgiRequest(buf *bytes.Buffer) (*Request, os.Error) {
86
86
87
87
content := data [len (data )- clen :]
88
88
89
- println ("clen" , clen , len (content ))
90
-
91
89
fields := bytes .Split (data [0 :len (data )- clen ], []byte {0 }, 0 )
92
90
93
91
for i := 0 ; i < len (fields )- 1 ; i += 2 {
@@ -97,9 +95,6 @@ func readScgiRequest(buf *bytes.Buffer) (*Request, os.Error) {
97
95
}
98
96
99
97
body := bytes .NewBuffer (content )
100
- //var body bytes.Buffer
101
- //body.Write(content)
102
-
103
98
req := newRequestCgi (headers , body )
104
99
105
100
return req , nil
@@ -118,7 +113,7 @@ func handleScgiRequest(fd io.ReadWriteCloser) {
118
113
read := n
119
114
length , _ := strconv .Atoi (string (tmp [0 :colonPos ]))
120
115
buf .Write (tmp [0 :n ])
121
- println ( "read" , n )
116
+
122
117
for read < length {
123
118
n , err := fd .Read (& tmp )
124
119
if err != nil || n == 0 {
You can’t perform that action at this time.
0 commit comments