Issue #1116 Allow empty HTTP header value

This commit is contained in:
Greg Wilkins 2017-08-30 16:40:58 +10:00
parent 165ca36f6b
commit afaa170cd9
1 changed files with 0 additions and 4 deletions

View File

@ -600,10 +600,6 @@ public class HttpGenerator
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);