Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #725 (enhancement)

Opened 1 year ago

Last modified 1 year ago

cherrypy.url should default to emitting server-relative URL's

Status: closed (fixed)

Reported by: fumanchu Assigned to: rdelon
Priority: normal Milestone: 3.1
Component: CherryPy code Keywords:
Cc:

Currently, cherrypy.url() defaults to emitting URL's that include the scheme ("https") and hostname ("www.example.com"). This is slightly wasteful with bytes on the wire. Although URL's in the full form must still be made available (for putting in emails, for example), it should not be the default; instead, cherrypy.url() should emit URL's relative to the server by default.

For example, instead of returning:

http://www.example.com/path/to/page

...it should instead output this by default:

/path/to/page

Change History

10/26/07 21:14:29: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1769]. It doesn't default (that would break backward compatibility), but at least there's an option for it now.

Hosted by WebFaction

Log in as guest/cpguest to create tickets