lib: throws when invalid hex string in http request
Signed-off-by: Juan José Arboleda soyjuanarbol@gmail.com
May fix: https://github.com/nodejs/node/issues/45150
I don't know why a string that does not follow this condition is considered an invalid hex string, but It is better to throw an exception instead of crashing the whole thing (IMO).
The condition: CHECK(str->Length() % 2 == 0 && "invalid hex string length");