Error with 400 Bad Request
when both 'file' and 'shorten' set
#65
Loading…
x
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.