mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Add XHR support for FormData
This commit is contained in:
parent
c420a870c1
commit
184b522230
13 changed files with 173 additions and 174 deletions
|
@ -21,7 +21,7 @@ def main(request, response):
|
|||
boundary = content_type[1].strip("boundary=")
|
||||
|
||||
body = "--" + boundary + "\r\nContent-Disposition: form-data; name=\"file-input\"; filename=\"upload.txt\""
|
||||
body += "\r\n" + "text/plain\r\n\r\nHello\r\n--" + boundary + "--"
|
||||
body += "\r\n" + "content-type: text/plain\r\n\r\nHello\r\n--" + boundary + "--"
|
||||
|
||||
if body != request.body:
|
||||
return fail("request body doesn't match: " + body + "+++++++" + request.body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue