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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user