harbor run -t openthoughts/tasktrove-exp-rpt-issue-issue-0722harbor download openthoughts/tasktrove-exp-rpt-issue-issue-0722Problem description
What to implement
Files to modify/create (in /app/)
Before (source code state)
# app/django/http/request.py
class HttpRequest:
# ...
def scheme(self):
# ... some logic to determine header and secure_value ...
for header, secure_value in self.SCHEME_HEADERS:
header_value = self.META.get(header)
if header_value is not None:
# Pre-fix behavior: compare the raw header value directly
return "https" if header_value == secure_value else "http"
return self._get_scheme()
Notes about the before state
What the agent should do (implementation guidance, not exact patch)
Exact files to create/modify (in /app/)
Optional testing/help (not required by the instruction, but recommended)
This task can be completed without cloning the full repository; you only need to modify the specified file under /app/ in your environment.