From d3f73266ad72578ab7f47fdf6114bd6f4386f8a2 Mon Sep 17 00:00:00 2001 From: "nicolas.dufresne@gmail.com" Date: Mon, 15 Oct 2012 20:06:30 +0000 Subject: Fix mixed used of tabs and space for indentation git-svn-id: http://libproxy.googlecode.com/svn/trunk@862 c587cffe-e639-0410-9787-d7902ae8ed56 --- libproxy/url.cpp | 12 ++++++------ 1 file 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 */ -- cgit v1.2.1