Commit fea64849 authored by Sergey Lyubka's avatar Sergey Lyubka Committed by Cesanta Bot

Fix https://github.com/cesanta/mongoose-os/issues/318

PUBLISHED_FROM=2fc7b59b2edd0f473acd22067439471778acef8e
parent 944a6b76
...@@ -7919,6 +7919,9 @@ struct mg_connection *mg_connect_http_base( ...@@ -7919,6 +7919,9 @@ struct mg_connection *mg_connect_http_base(
goto out; goto out;
} }
/* If query is present, do not strip it. Pass to the caller. */
if (query.len > 0) path->len += query.len + 1;
if (scheme.len == 0 || mg_vcmp(&scheme, scheme1) == 0 || if (scheme.len == 0 || mg_vcmp(&scheme, scheme1) == 0 ||
(scheme2 != NULL && mg_vcmp(&scheme, scheme2) == 0)) { (scheme2 != NULL && mg_vcmp(&scheme, scheme2) == 0)) {
use_ssl = 0; use_ssl = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment