Permalink
Browse files

Removing Dicover

  • Loading branch information...
1 parent 15c0ae7 commit 28a67ad8e420088b9673ccb357ee97bccd2da7cc Paul Kinlan committed Jul 10, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −1 server/handlers_base.py
  2. +0 −1 server/webintents/pages/index.html
View
10 server/handlers_base.py
@@ -19,7 +19,11 @@
'.jpeg' : 'image/jpeg',
'.txt' : 'text/plain',
'.cache' : 'text/manifest'
-}
+}
+
+status_codes = {
+ 'webintents/discover': 410
+}
def get_content_type(extension):
return file_types.get(extension, "application/octet-stream")
@@ -38,6 +42,10 @@ def render_file(self, file, domain, data):
name, extension = parse_filename(file)
+ if domain + '/' + file in status_codes :
+ self.error(status_codes[domain + '/' + file])
+ return
+
content_type = file_types.get(extension, "text/html")
# Only display known file types
if content_type is None and extension == " ":
View
1 server/webintents/pages/index.html
@@ -131,7 +131,6 @@ <h2 id="defaultintents">Intents</h2>
intent is designed to be self documenting.
</p>
<ul>
- <li><a href="/discover">Discover</a></li>
<li><a href="/share">Share</a></li>
<li><a href="/edit">Edit</a></li>
<li><a href="/view">View</a></li>

0 comments on commit 28a67ad

Please sign in to comment.