Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/fake_django/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def post_form(request):


def request_headers(request):
body = "\n".join(f"{key}: {value}" for key, value in request.META.items())
headers = "\n".join(f"{key}: {value}" for key, value in request.META.items())
body = f"<html><body>{headers}</body></html>"
return HttpResponse(body)


Expand All @@ -67,7 +68,7 @@ def upload_file(request):


def foo(request):
return HttpResponse("BAR!")
return HttpResponse("<html><body>BAR!</body></html>")


def query_string(request):
Expand Down
4 changes: 2 additions & 2 deletions tests/fake_webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ def upload_file():

@app.route("/headers", methods=["GET"])
def request_headers():
return str(request.headers)
return f"<html><body>{request.headers}</body></html>"


@app.route("/foo")
def foo():
return "BAR!"
return "<html><body>BAR!</body></html>"


@app.route("/query", methods=["GET"])
Expand Down
Loading