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

nsqadmin: confirm actions #118

Merged
merged 1 commit into from
Jan 15, 2013
Merged

nsqadmin: confirm actions #118

merged 1 commit into from
Jan 15, 2013

Conversation

mreiferson
Copy link
Member

for a variety of reasons this is a good idea :)

@angry-elf
Copy link

+1 for that.
every action must be done with POST request, not GET. Otherwise browser restarted at opened /delete_topic page will crash whole civilisation.

@michaelhood
Copy link
Contributor

+1, bonus +1 for use of 'crash whole civilisation' (it's true.)

@mreiferson
Copy link
Member Author

this is rebased on #107, it's only actually the last 2 commits

ready @jehiah

@@ -275,7 +276,7 @@ func lookupHandler(w http.ResponseWriter, req *http.Request) {
}

func createTopicChannelHandler(w http.ResponseWriter, req *http.Request) {
reqParams, err := util.NewReqParams(req)
reqParams, err := util.NewBodyReqParams(req)
Copy link
Member

Choose a reason for hiding this comment

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

let's switch to explicitly require POST, and to use req.FormValue(key) so this handles multipart forms as well.

@jehiah
Copy link
Member

jehiah commented Jan 15, 2013

updates to change parsing of post body look good. Please squash.

@mreiferson
Copy link
Member Author

rebased/squashed

jehiah added a commit that referenced this pull request Jan 15, 2013
@jehiah jehiah merged commit e2ada77 into nsqio:master Jan 15, 2013
absolute8511 added a commit to absolute8511/nsq that referenced this pull request Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants