mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-14 21:38:05 +03:00
osmo-smdpp: Make sure to return empty HTTP response in handleNotification
SGP.22 is quite clear in that handleNotification shall return an empty HTTP response body. Let's make sure we comply to that and don't report a JSON response. Change-Id: I1cad539accbc3e7222bfd4780955b3b1ff694c5b
This commit is contained in:
1 parent
96e2a521e9
commit
0519e2b7e1
1 file changed
+3
-1
+3
-1
@@ -186,7 +186,9 @@ class SmDppHttpServer:
|
|||||||
print("Rx JSON: %s" % json.dumps(content))
|
print("Rx JSON: %s" % json.dumps(content))
|
||||||
set_headers(request)
|
set_headers(request)
|
||||||
|
|
||||||
output = func(self, request, content) or {}
|
output = func(self, request, content)
|
||||||
|
if output == None:
|
||||||
|
return ''
|
||||||
|
|
||||||
build_resp_header(output)
|
build_resp_header(output)
|
||||||
print("Tx JSON: %s" % json.dumps(output))
|
print("Tx JSON: %s" % json.dumps(output))
|
||||||
|
|||||||
Reference in new issue
Block a user