summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicolas.dufresne@gmail.com <nicolas.dufresne@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2012-10-15 20:06:30 +0000
committernicolas.dufresne@gmail.com <nicolas.dufresne@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2012-10-15 20:06:30 +0000
commitd3f73266ad72578ab7f47fdf6114bd6f4386f8a2 (patch)
treefb21ce65ee22a7338d9ed9fbf033378b029f2416
parentef4214b36b625675023bc79b37e6a841bacd741e (diff)
downloadlibproxy-d3f73266ad72578ab7f47fdf6114bd6f4386f8a2.tar.gz
Fix mixed used of tabs and space for indentation
git-svn-id: http://libproxy.googlecode.com/svn/trunk@862 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r--libproxy/url.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libproxy/url.cpp b/libproxy/url.cpp
index a4895d4..772a9e9 100644
--- a/libproxy/url.cpp
+++ b/libproxy/url.cpp
@@ -95,7 +95,7 @@ bool url::is_valid(const string url_) {
rtv = false;
}
- return rtv;
+ return rtv;
}
string url::encode(const string &data, const string &valid_reserved) {
@@ -172,8 +172,8 @@ url::url(const string &url) throw(parse_error)
authority_start = 2;
/* authority is always followed by / or nothing */
authority_end = hier_part.find('/', authority_start);
- if (authority_end == string::npos)
- authority_end = hier_part.size();
+ if (authority_end == string::npos)
+ authority_end = hier_part.size();
path_start = authority_end;
/* 3.2:
@@ -203,7 +203,7 @@ url::url(const string &url) throw(parse_error)
/* Check for IPv6 IP */
if (host_start < hier_part.size()
- && hier_part[host_start] == '[') {
+ && hier_part[host_start] == '[') {
host_end = hier_part.find(']', host_start);
if (host_end == string::npos)
throw parse_error("Invalid URL: " + url);
@@ -212,8 +212,8 @@ url::url(const string &url) throw(parse_error)
host_end = string::npos;
} else {
host_end = hier_part.find(':', host_start);
- if (path_start < host_end)
- host_end = path_start;
+ if (path_start < host_end)
+ host_end = path_start;
}
/* If not port, host ends where path starts */