Skip to content

Commit

Permalink
response: only trim spaces at headers names end
Browse files Browse the repository at this point in the history
as is done for requests
  • Loading branch information
catenacyber authored and victorjulien committed Jun 9, 2023
1 parent c629f26 commit 3024aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htp/htp_response_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ htp_status_t htp_parse_response_header_generic(htp_connp_t *connp, htp_header_t

// Ignore unprintable after field-name.
prev = name_end;
while ((prev > name_start) && (data[prev - 1] <= 0x20)) {
while ((prev > name_start) && htp_is_space(data[prev - 1])) {
prev--;
name_end--;

Expand Down

0 comments on commit 3024aaf

Please sign in to comment.