Repository: ShawHahnLab/vquest (language: python)

Issue:
HTTPS is needed now
The IMGT server didn't used to (I think?) support HTTPS for V-QUEST requests but now requires it.  Otherwise a stub HTML file is given in the POST response.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d2fe368..620299c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
 # Changelog
 
+## dev
+
+### Fixed
+
+ * Requests to the IMGT server now use HTTPS ([#34])
+
+[#34]: https://github.com/ressy/vquest/pull/34
+
 ## 0.0.9 - 2021-07-20
 
 ### Added
diff --git a/vquest/request.py b/vquest/request.py
index 06a3f65..0282cd1 100644
--- a/vquest/request.py
+++ b/vquest/request.py
@@ -12,7 +12,7 @@
 
 LOGGER = logging.getLogger(__name__)
 
-URL = "http://www.imgt.org/IMGT_vquest/analysis"
+URL = "https://www.imgt.org/IMGT_vquest/analysis"
 DELAY = 1 # for rate-limiting multiple requests
 CHUNK_SIZE = 50 # to stay within V-QUEST's limit on sequences in one go
 


Test patch:
diff --git a/test_vquest/test_vquest.py b/test_vquest/test_vquest.py
index 89f460e..fd4b566 100644
--- a/test_vquest/test_vquest.py
+++ b/test_vquest/test_vquest.py
@@ -111,7 +111,7 @@ def test_vquest(self):
         self.assertEqual(self.post.call_count, 1)
         self.assertEqual(
             self.post.call_args.args,
-            ('http://www.imgt.org/IMGT_vquest/analysis', ))
+            ('https://www.imgt.org/IMGT_vquest/analysis', ))
         config_used = self.config.copy()
         # Whatever input type was given the actual type submitted to the form
         # will be "inline" to allow chunking of sequences if needed.  The
@@ -274,7 +274,7 @@ def test_vquest(self):
         self.assertEqual(self.post.call_count, 1)
         self.assertEqual(
             self.post.call_args.args,
-            ('http://www.imgt.org/IMGT_vquest/analysis', ))
+            ('https://www.imgt.org/IMGT_vquest/analysis', ))
 
     def test_vquest_main(self):
         """Test that an html file with an error message is parsed correctly for cmd-line usage."""