With libhtp having been improved, Suricata does not need to check
that there is either a response line or HTTP/0.9 as libhtp
will trigger the callbacks only in those cases
* we check for tx->response_line in case of junk
* interpreted as body before response line
*/
- if (!(htud->tcflags & HTP_FILENAME_SET) &&
- (tx->response_line != NULL || tx->is_protocol_0_9))
- {
+ if (!(htud->tcflags & HTP_FILENAME_SET)) {
SCLogDebug("setting up file name");
uint8_t *filename = NULL;
htud->tcflags &= ~HTP_DONTSTORE;
}
}
- }
- else if (tx->response_line != NULL || tx->is_protocol_0_9)
- {
+ } else {
/* otherwise, just store the data */
if (!(htud->tcflags & HTP_DONTSTORE)) {