Skip to content

Commit

Permalink
Merge pull request #17861 from Faless/fix_js_http
Browse files Browse the repository at this point in the history
Fix bug in HTML5 HTTPClient.
  • Loading branch information
leonkrause authored Mar 30, 2018
2 parents b704cfa + b8c73b1 commit b61021d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/javascript/http_client_javascript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Error HTTPClient::prepare_request(Method p_method, const String &p_url, const Ve
ERR_FAIL_COND_V(port < 0, ERR_UNCONFIGURED);
ERR_FAIL_COND_V(!p_url.begins_with("/"), ERR_INVALID_PARAMETER);

String url = (use_tls ? "https://" : "http://") + host + ":" + itos(port) + "/" + p_url;
String url = (use_tls ? "https://" : "http://") + host + ":" + itos(port) + p_url;
godot_xhr_reset(xhr_id);
godot_xhr_open(xhr_id, _methods[p_method], url.utf8().get_data(),
username.empty() ? NULL : username.utf8().get_data(),
Expand Down

0 comments on commit b61021d

Please sign in to comment.