Skip to content
Merged
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
2 changes: 1 addition & 1 deletion vectorizing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def index() -> str | Response | tuple[Response, int]:
timer.end_timer()

if raw:
return markup
return Response(markup, mimetype="image/svg+xml")

timer.start_timer("Markup Upload")
cuid_str = upload_markup(markup, S3_BUCKET)
Expand Down
1 change: 1 addition & 0 deletions vectorizing/tests/test_api_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def test_raw_requests_crop_before_vectorizing_and_do_not_upload(
},
)
assert response.status_code == 200
assert response.mimetype == "image/svg+xml"
assert response.data.startswith(b"<svg ")
assert b'width="8" height="8"' in response.data
chosen, unused = (binary, color) if solver == 0 else (color, binary)
Expand Down
Loading