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

Allow empty header values

This tracks an AOSP change by Brian Carlstrom.
Change-Id: I78bb07a93d527eda6aaee6e986be39a68e0a02f4
This commit is contained in:
jwilson
2013-04-09 08:17:30 -07:00
parent ae4a84a73d
commit d7ed3f8c44

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);