[MEDIUM] http: capture invalid requests/responses even if accepted

It's useful to be able to accept an invalid header name in a request
or response but still be able to monitor further such errors. Now,
when an invalid request/response is received and accepted due to
an "accept-invalid-http-{request|response}" option, the invalid
request will be captured for later analysis with "show errors" on
the stats socket.
diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h
index 41f1922..175eb04 100644
--- a/include/proto/proto_http.h
+++ b/include/proto/proto_http.h
@@ -86,6 +86,9 @@
 void http_sess_log(struct session *s);
 void perform_http_redirect(struct session *s, struct stream_interface *si);
 void http_return_srv_error(struct session *s, struct stream_interface *si);
+void http_capture_bad_message(struct error_snapshot *es, struct session *s,
+                              struct buffer *buf, struct http_msg *msg,
+			      struct proxy *other_end);
 
 #endif /* _PROTO_PROTO_HTTP_H */