Skip to content

gweb/wispr: Normalize received HTTP header field names

Giuseppe Eletto connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gweb: Normalize received HTTP header field names to lowercasegweb/gweb.c+16 -30 replies
2/2wispr: Use lowercase header field names in g_web_result_get_header callssrc/wispr.c tools/wispr.c+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] gweb/wispr: Normalize received HTTP header field names

This series makes connman correctly handle HTTP response headers from modern servers that send field names in lowercase, as permitted by RFC 9110 Section 5.1.

The first patch normalizes incoming header field names to lowercase at parse time in gweb and updates the lookup path accordingly. The latter updates wispr call sites to pass lowercase names, consistent with the normalized store.

Giuseppe Eletto (2):
gweb: Normalize received HTTP header field names to lowercase
wispr: Use lowercase header field names in g_web_result_get_header
calls

 gweb/gweb.c   | 19 ++++++++++++++++---
 src/wispr.c   | 12 ++++++------
 tools/wispr.c |  4 ++--
 3 files changed, 24 insertions(+), 11 deletions(-)
Signature · 1 line
2.50.1