Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Add JSON endpoint for cert viewing #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add JSON endpoint for cert viewing #2

wants to merge 2 commits into from

Conversation

swsnider
Copy link
Member

@swsnider swsnider commented Nov 5, 2012

Appending &format=json to the end of a /cert url will now output JSON.

@@ -453,11 +453,11 @@ def get(self):
cert_id = int(self.request.get('id'))
except (ValueError, TypeError):
return self.error(404)
cert_format = self.request.get('format', 'html')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't actually use 'html' anywhere, why not just make this .get('format').

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants