|
|
@@ -23,12 +23,16 @@ class AutoWebsiteUpdate:
|
|
|
+ "Headers: {}\n".format(request.headers)
|
|
|
+ "Args (url path): {}\n".format(args)
|
|
|
+ "Keyword Args (url parameters): {}\n".format(kwargs)
|
|
|
- + "Body: {}".format(request.body.read(int(request.header["Content-Length"]))))
|
|
|
+ + "Body: {}".format(
|
|
|
+ request.body.read(int(request.header["Content-Length"]))
|
|
|
+ if(int(request.headers.get("Content-Length", 0)) > 0):
|
|
|
+ print("content")
|
|
|
+ else:
|
|
|
+ print("no content")
|
|
|
+ )
|
|
|
+ )
|
|
|
+ return
|
|
|
|
|
|
- if(int(request.headers.get("Content-Length", 0)) > 0):
|
|
|
- print("content")
|
|
|
- else:
|
|
|
- print("no content")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
autoWebsiteUpdate = AutoWebsiteUpdate()
|