Skip to content

Commit 4fe4af5

Browse files
authored
Fix parameters order in POST requests (#31)
* This should fix #29 Sorry about the lack of unit tests in this project. Tested and validated at Résif. * Version bump
1 parent b019ca7 commit 4fe4af5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# error message constants
3939
DOCUMENTATION_URI = "http://www.fdsn.org/webservices/fdsnws-availability-1.0.pdf"
4040
SERVICE = "fdsnws-availability"
41-
VERSION = "1.0.2"
41+
VERSION = "1.0.3"
4242

4343

4444
class Error:

apps/root.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_post_params():
132132
paramslist = list()
133133
code = ("network", "station", "location", "channel")
134134
exclude = ("net", "sta", "cha", "loc", "starttime", "endtime", "constraints")
135-
post_params = (k for k in Parameters().todict() if k not in exclude)
135+
post_params = [(k for k in Parameters().todict() if k not in exclude]
136136

137137
# Universal newline decoding :
138138
stream = io.StringIO(request.stream.read().decode("UTF8"), newline=None)

0 commit comments

Comments
 (0)