TIdEntityHeaderInfo.Clear() does not clear CustomHeaders property #391
Labels
Element: HTTP
Issues related to HTTP handling, TIdHTTP, TIdHTTPServer, TIdHTTPProxyServer, etc
Status: Review Needed
Issue needs further review to decide next status
Type: Bug
Issue is a bug in existing code
The
TIdEntityHeaderInfo.Clear()
method does not clear the contents of theFCustomHeaders
member, but it does clear the contents of theFRawHeaders
member.I'm not sure if this is really a bug, or is intentional, for instance to allow user-defined headers to carry across multiple requests without having to reset them each time. But since other properties are cleared, I think
CustomHeaders
should act consistently.The text was updated successfully, but these errors were encountered: