|
@ -30,7 +30,9 @@ class HTTPRequestHandler(BaseHTTPRequestHandler): |
|
|
def do_GET(self): |
|
|
def do_GET(self): |
|
|
if self.headers.get("Host") == "s3.amazonaws.com": |
|
|
if self.headers.get("Host") == "s3.amazonaws.com": |
|
|
endpoints = { |
|
|
endpoints = { |
|
|
"/MinecraftResources/": self._404 |
|
|
"/MinecraftResources/": self._404, |
|
|
|
|
|
"/MinecraftSkins/": self.serve_skin, |
|
|
|
|
|
"/MinecraftCloaks/": self.serve_cape |
|
|
} |
|
|
} |
|
|
elif self.headers.get("Host") == "www.minecraft.net": |
|
|
elif self.headers.get("Host") == "www.minecraft.net": |
|
|
endpoints = { |
|
|
endpoints = { |
|
|