Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 compatible lookupd queries #167

Merged
merged 1 commit into from
Feb 17, 2017

Conversation

jehiah
Copy link
Member

@jehiah jehiah commented Feb 17, 2017

pynsq was not yet making 1.0 compatible queries to lookupd, so this code breaks due to the deprication of the old format in nsqio/nsq#367. This updates to pass the right header to make forwards compatible queries.

@jehiah jehiah added the bug label Feb 17, 2017
@jehiah jehiah requested a review from mreiferson February 17, 2017 15:01
@mreiferson
Copy link
Member

nice

@mreiferson mreiferson merged commit 08ba774 into nsqio:master Feb 17, 2017
@mreiferson mreiferson deleted the lookupd_forwards_compat_167 branch February 17, 2017 15:23
@@ -582,6 +582,7 @@ def query_lookupd(self):

req = tornado.httpclient.HTTPRequest(
lookupd_url, method='GET',
header={"Accept":"application/vnd.nsq; version=1.0"},
Copy link
Member Author

Choose a reason for hiding this comment

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

typo! should be headers. 😢

Copy link
Member

Choose a reason for hiding this comment

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

hahahahah 😭

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

Successfully merging this pull request may close these issues.

2 participants