16
13
# We rely on the request's parsing of the URI.
18
15
# Short-circuit to :file if it's a fully-qualified path or specifies a 'file' protocol.
20
17
return PROTOCOL_MAP["file"] if request.protocol == "file"
22
19
# We're heading over the wire the protocol is 'puppet' and we've got a server name or we're not named 'apply' or 'puppet'