File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,10 +136,10 @@ state_action http_handle_mon_eolwrite_initial(scache_connection* connection) {
136136
137137
138138static state_action http_headers_response_count (scache_connection* connection, int http_template) {
139+ connection->state = 2 ;
139140 CONNECTION_HANDLER (connection, http_handle_mon_eolwrite_initial);
140141 connection->output_buffer = http_templates[http_template];
141142 connection->output_length = http_templates_length[http_template];
142- connection->state = 2 ;
143143 return needs_more;
144144}
145145
@@ -213,7 +213,8 @@ static inline state_action http_mon_read_requeststarturl(scache_connection* conn
213213 }
214214 } else if (n == 5 && strcmp (key, " conn" ) == 0 ){ // URL: "/conn"
215215 free (key);
216- connection->state = 0 ;
216+ connection->state = 2 ;
217+ CONNECTION_HANDLER (connection, http_handle_mon_eolwrite_initial);
217218 return http_handle_mon_eolwrite_initial (connection);
218219 }
219220
You can’t perform that action at this time.
0 commit comments