1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-27 04:22:07 +03:00

Merge pull request #140 from square/jwilson/empty_header

Allow empty header values
This commit is contained in:
Jake Wharton
2013-04-09 11:16:08 -07:00

View File

@@ -373,7 +373,6 @@ public final class RawHeaders {
// TODO: promote this check to where names and values are created
if (name.length() == 0
|| value.length() == 0
|| name.indexOf('\0') != -1
|| value.indexOf('\0') != -1) {
throw new IllegalArgumentException("Unexpected header: " + name + ": " + value);