summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bargren <cbargren@gmail.com>2015-12-22 10:38:16 -0700
committerChris Bargren <cbargren@gmail.com>2015-12-22 10:38:16 -0700
commitd900cec96c322fb85a810b3476defa8e458fa2a8 (patch)
treef2eabd84915c197b00487d393fa652c90c06abf1
parente9c0d7962b07be30826c8d112ea98c70dd548195 (diff)
downloadlibgit2-d900cec96c322fb85a810b3476defa8e458fa2a8.tar.gz
Updating http parser to accept a `+` in the schema
-rw-r--r--deps/http-parser/http_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/http-parser/http_parser.c b/deps/http-parser/http_parser.c
index 203530254..b793d7011 100644
--- a/deps/http-parser/http_parser.c
+++ b/deps/http-parser/http_parser.c
@@ -451,7 +451,7 @@ parse_url_char(enum state s, const char ch)
break;
case s_req_schema:
- if (IS_ALPHA(ch)) {
+ if (IS_ALPHA(ch) || ch == '+') {
return s;
}