projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
140bbc2
)
Archives search need to be https by default
author
Magnus Hagander
<magnus@hagander.net>
Sat, 7 Jan 2017 16:51:07 +0000
(17:51 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 7 Jan 2017 16:51:07 +0000
(17:51 +0100)
pgweb/search/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/search/views.py
b/pgweb/search/views.py
index 9291f9a2f66ac40e85f1eff674468fde877c49aa..65f72cfea227d4531b44789e2135968df0f382b4 100644
(file)
--- a/
pgweb/search/views.py
+++ b/
pgweb/search/views.py
@@
-179,7
+179,7
@@
def search(request):
memc = None
if not hits:
# No hits found - so try to get them from the search server
- c = httplib.HTTPConnection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5)
+ c = httplib.HTTP
S
Connection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5)
c.request('POST', '/archives-search/', urlstr, {'Content-type': 'application/x-www-form-urlencoded; charset=utf-8'})
c.sock.settimeout(20) # Set a 20 second timeout
try: