Skip to content

Commit

Permalink
Cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 21, 2018
1 parent f1b5987 commit 3142824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsdatasourceuri.h
Expand Up @@ -90,7 +90,7 @@ class QgsWFSDataSourceURI
//! Return base URL (with SERVICE=WFS parameter if bIncludeServiceWFS=true)
QUrl baseURL( bool bIncludeServiceWFS = true ) const;

//! Return request URL with SERVICE=WFS parameter)
//! Return request URL (with SERVICE=WFS parameter)
QUrl requestUrl( const QString &request, const Method &method = Method::Get ) const;

//! Get WFS version. Can be auto, 1.0.0, 1.1.0 or 2.0.0.
Expand Down
5 changes: 2 additions & 3 deletions tests/src/python/test_provider_wfs.py
Expand Up @@ -44,11 +44,10 @@
def sanitize(endpoint, x):
if len(endpoint + x) > 256:
ret = endpoint + hashlib.md5(x.encode()).hexdigest()
print('Before: ' + endpoint + x)
print('After: ' + ret)
#print('Before: ' + endpoint + x)
#print('After: ' + ret)
return ret
ret = endpoint + x.replace('?', '_').replace('&', '_').replace('<', '_').replace('>', '_').replace('"', '_').replace("'", '_').replace(' ', '_').replace(':', '_').replace('/', '_').replace('\n', '_')
print('After: ' + ret)
return ret


Expand Down

0 comments on commit 3142824

Please sign in to comment.