Skip to content

Commit

Permalink
Issue #1116 Allow empty HTTP header value
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Aug 30, 2017
1 parent 165ca36 commit afaa170
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,6 @@ private void generateHeaders(MetaData _info,ByteBuffer header,ByteBuffer content
for (int f=0;f<n;f++)
{
HttpField field = fields.getField(f);
String v = field.getValue();
if (v==null || v.length()==0)
continue; // rfc7230 does not allow no value

HttpHeader h = field.getHeader();
if (h==null)
putTo(field,header);
Expand Down

0 comments on commit afaa170

Please sign in to comment.