summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2014-07-22 01:08:04 -0700
committerSteve Piercy <web@stevepiercy.com>2014-07-22 01:08:04 -0700
commit168a31d375e35b93c4330c1fd296b1c4ff641029 (patch)
treef2ff4548d34acd0beb8b6daafe4957f1fa8ebb35
parentb4245a312bfe7f99080d46c1f9814f2c5da2cbf1 (diff)
downloadpyramid-168a31d375e35b93c4330c1fd296b1c4ff641029.tar.gz
pyramid-168a31d375e35b93c4330c1fd296b1c4ff641029.tar.bz2
pyramid-168a31d375e35b93c4330c1fd296b1c4ff641029.zip
fix URL
Schema does not change when only host is overridden.
-rw-r--r--pyramid/url.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/url.py b/pyramid/url.py
index bf4d4ff48..a0f3d7f2f 100644
--- a/pyramid/url.py
+++ b/pyramid/url.py
@@ -223,7 +223,7 @@ class URLMethodsMixin(object):
named portion in the generated URL. For example, if you pass
``_host='foo.com'``, and the URL that would have been generated
without the host replacement is ``http://example.com/a``, the result
- will be ``https://foo.com/a``.
+ will be ``http://foo.com/a``.
Note that if ``_scheme`` is passed as ``https``, and ``_port`` is not
passed, the ``_port`` value is assumed to have been passed as
@@ -414,7 +414,7 @@ class URLMethodsMixin(object):
portion in the generated URL. For example, if you pass
``host='foo.com'``, and the URL that would have been generated
without the host replacement is ``http://example.com/a``, the result
- will be ``https://foo.com/a``.
+ will be ``http://foo.com/a``.
If ``scheme`` is passed as ``https``, and an explicit ``port`` is not
passed, the ``port`` value is assumed to have been passed as ``443``.