[squeak-dev] The Inbox: Monticello-tobe.724.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Jun 14 15:24:54 UTC 2020
A new version of Monticello was added to project The Inbox:
http://source.squeak.org/inbox/Monticello-tobe.724.mcz
==================== Summary ====================
Name: Monticello-tobe.724
Author: tobe
Time: 14 June 2020, 5:24:40.705825 pm
UUID: 2c269510-4a04-42a0-995a-d29adcc33fee
Ancestors: Monticello-mt.723
Allow mc http repositories to handle absolute paths
Monticello will collect all <a href=""> tags on the repository's webpage. It currently expects these to be relative to the URL of the website. Some third party sites that can host mcz files, however do not use relative, but absolute paths. An example of this are Github releases pages.
=============== Diff against Monticello-mt.723 ===============
Item was changed:
----- Method: MCHttpRepository>>urlForFileNamed: (in category 'accessing') -----
urlForFileNamed: aString
+ " if we have an absolute path, take the base of the location and append the full path "
+ aString first = $/ ifTrue: [^ (location first: (location indexOf: $/ startingAt: 'https:// ' size)), aString].
+
^ self locationWithTrailingSlash, aString encodeForHTTP!
More information about the Squeak-dev
mailing list
|