You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @blueyed. Off the cuff, this doesn't sound correct. Both request.build_absolute_uri() and request.get_raw_uri() ultimately make calls to request._get_raw_host(), which is what is used to return the HOST+PORT.
request.build_absolute_uri()
is used in e.g.SchemaGenerator.get_schema()
, but this does not include the port being used.This is bad when using e.g. the coreapi-cli client against a local runserver instance, where links cannot be resolved then.
While the port could be included on Django's side maybe, it might be better to use
get_raw_uri()
instead?!The text was updated successfully, but these errors were encountered: