mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/struck/BIT-1277'
* origin/topic/struck/BIT-1277: [ADD] Added the feature to return 0 content to the python http test server and added functionality for post requests [ADD] added baseline for the new active-http test and added a test to check for the content-length 0 fix. [ADD] added baseline for the new exec test and added a test to check for the empty files fix. [FIX] exec should write an empty string when file is empty instead of the filename [FIX] Add files to result table even if the files are empty BIT-1277 #merged
This commit is contained in:
commit
4216a5eb1c
9 changed files with 76 additions and 14 deletions
|
@ -2,13 +2,28 @@
|
|||
|
||||
import BaseHTTPServer
|
||||
|
||||
|
||||
class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||
|
||||
def do_GET(self):
|
||||
self.send_response(200)
|
||||
self.send_header("Content-type", "text/plain")
|
||||
self.end_headers()
|
||||
self.wfile.write("It works!")
|
||||
|
||||
if "/empty" in self.path:
|
||||
self.wfile.write("")
|
||||
else:
|
||||
self.wfile.write("It works!")
|
||||
|
||||
def do_POST(self):
|
||||
self.send_response(200)
|
||||
self.send_header("Content-type", "text/plain")
|
||||
self.end_headers()
|
||||
|
||||
if "/empty" in self.path:
|
||||
self.wfile.write("")
|
||||
else:
|
||||
self.wfile.write("It works!")
|
||||
|
||||
def version_string(self):
|
||||
return "1.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue