Error with 400 Bad Request
when both 'file' and 'shorten' set
#65
No reviewers
Labels
No Label
bug
feature
good-beginner-bug
needs-test
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: electricdusk/rushlink#65
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue-56"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This patch refactors
rushlink.newPasteHandler
and adds a check that at most one of the fieldsfile
andshorten
is set.For some reason, the Go multipart form API populates the form with duplicate values, when only a single one is provided by the client. So we cannot check if (for example) only one
shorten
was provided. In this case, I chose to select the first one.Fixes #56.
I think this patch should be good. Merging without real review.