deft
deft copied to clipboard
Problems with PUT request
Hi,
It seems that PUT requests that contain a large body are truncated. Temporarily, I resolved with the following workaround in the method HttpRequest.of ()
if (requestLine.contains ("POST") | | requestLine.contains ("PUT")) {
int ContentLength = Integer.parseInt (generalHeaders.get ("content-length"));
if (ContentLength> body.length ()) {
return new PartialHttpRequest (requestLine, generalHeaders, body);
}
}
I hope it can be helpful:)
That should work for now. Deft has no official support for PUT methods (yet :) )
my fork now support it :) any suggestions are welcome :)
Cool. Det has just been accepted into Apache incubation (http://markmail.org/message/qkbl7djiqwg7eofo). There's alot of migration and infrastructure work todo at the moment. So the coding / patch reviewing is lagging behind. :) Thanks for the great work by the way. I would love to see your continued support during the apache incubation :)
wow great! congratulations! :) I'm also working on other things (configuration via json, custom errors pages, templates, revised cookies handling and other useful things) I believe in your project, I use Deft to develop a potentially large web application and you can count on my support in the future! thanks for your work!
Awesome. Don't hesitate to ask questions if you have any. The preferred way is irc (freenode, #deft) or mailing list (atm the google group, will soon be migrated to apache mailing list)