Issue #1116 Allow empty HTTP header value
This commit is contained in:
parent
165ca36f6b
commit
afaa170cd9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue