Skip to content

Conversation

@NoNiiEa
Copy link
Collaborator

@NoNiiEa NoNiiEa commented Aug 17, 2025

อันนี้ทำใหม่ อันที่แล้วลวกไปหน่อยแล้วมันใช้กับ frontend ไม่ได้5555 ผมฝาก merge หน่อยคับ

@NoNiiEa NoNiiEa requested a review from KanonKC August 17, 2025 16:41
@NoNiiEa NoNiiEa self-assigned this Aug 17, 2025
domain = request.get_host()
pdf_filename = problem.pdf_url
problem.pdf_url = f"http://{domain}/media/import-pdf/{pdf_filename}"
problem.pdf_url = f"http://{domain}/media/import-pdf/{pdf_filename}" if pdf_filename else ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ตอนที่ขึ้น Production แล้ว Domain ของเราจะขึ้นต้นด้วย https:// แทน เพราะงั้นอาจจะต้อง Handle กรณีนี้ด้วย

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

อันนี้ผมลองทำละ แต่ยังไม่ได้testแบบ https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants