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

fix: return 404 for invalid URL's for consistency #608

Merged
merged 1 commit into from
Aug 19, 2016
Merged

Conversation

bbangert
Copy link
Member

URL's that are invalid should return a 404, just like any other
invalid URL.

Closes #578

@codecov-io
Copy link

codecov-io commented Aug 18, 2016

Current coverage is 100% (diff: 100%)

Merging #608 into master will not change coverage

@@           master   #608   diff @@
====================================
  Files          44     44          
  Lines        8953   8951     -2   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
- Hits         8953   8951     -2   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update cf3f197...f4c47af

@jrconlin
Copy link
Member

@jrconlin
Copy link
Member

r+

1 similar comment
@pjenvey
Copy link
Member

pjenvey commented Aug 18, 2016

r+

@bbangert bbangert force-pushed the bug/issue-578 branch 8 times, most recently from 9ecd6b0 to 2e05e24 Compare August 19, 2016 00:38
@bbangert bbangert closed this Aug 19, 2016
@bbangert bbangert reopened this Aug 19, 2016
@bbangert bbangert force-pushed the bug/issue-578 branch 3 times, most recently from 4dfe329 to af5b33f Compare August 19, 2016 01:19
@@ -71,12 +71,13 @@ def timing(self, name, duration, **kwargs):
class DatadogMetrics(object):
"""DataDog Metric backend"""
def __init__(self, api_key, app_key, flush_interval=10,
namespace="autopush"):
namespace="autopush", hostname="localhost"):
Copy link
Member

Choose a reason for hiding this comment

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

hrm. tempted to say this should be None instead of "localhost". Settings sets it to a value, and that's pretty much the only init location.

That or we drop get_hostname() and treat the fact that it's been forced to None as an error.

URL's that are invalid should return a 404, just like any other
invalid URL.

Closes #578
@jrconlin
Copy link
Member

r++

@bbangert bbangert merged commit 8391f8a into master Aug 19, 2016
@bbangert bbangert deleted the bug/issue-578 branch August 19, 2016 03:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants