Opened 10 years ago

Closed 9 years ago

#2473 closed enhancement (fixed)

[PATCH] Add support for HTTP auth to TMS, don't send empty query strings

Reported by: Travers Carter Owned by: cbro@…
Priority: minor Milestone:
Component: merkaartor Version:
Keywords: TMS, HTTP Auth, Query String Cc:

Description

When trying to configure the NearMap? TMS (http://wiki.openstreetmap.org/wiki/Nearmap) in merkaartor I came across two problems:

1) NearMap? required HTTP auth which Merkaartor doesn't support for tile requests (note that NearMap? no longer actually requires this). 2) The TMS requests always include a trailing '?' in the URL even when the query string is empty, which the NearMap? tile server doesn't like.

The attached patch implements support for optional HTTP auth to be specified in the server entry (ie [user:password@]host) and only appends the '?' to the tile URL if there is a query string to be appended.

Attachments (1)

merkaartor-TMS-auth.diff (1.0 KB) - added by Travers Carter 10 years ago.
Patch adding HTTP auth support for TMS tile requests

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Travers Carter

Attachment: merkaartor-TMS-auth.diff added

Patch adding HTTP auth support for TMS tile requests

comment:1 Changed 9 years ago by Chris Browet

Resolution: fixed
Status: newclosed

(In [20051]) FIX : Add support for HTTP auth to TMS (by Trav) (closes #2473)

Note: See TracTickets for help on using tickets.