writeError(l10n("errorMustSpecifyKeyTypeTitle"),
l10n("errorMustSpecifyKeyType"), ctx, false, true);
return;
}
MultiValueTable<String, String> responseHeaders = new MultiValueTable<String, String>();
responseHeaders.put("Location", LocalFileInsertToadlet.PATH+"?key="+insertURI.toASCIIString()+
"&compress="+String.valueOf(request.getPartAsStringFailsafe("compress", 128).length() > 0)+
"&compatibilityMode="+request.getPartAsStringFailsafe("compatibilityMode", 100)+
"&overrideSplitfileKey="+request.getPartAsStringFailsafe("overrideSplitfileKey", 65));
ctx.sendReplyHeaders(302, "Found", responseHeaders, null, 0);
return;