Skip to content

Instantly share code, notes, and snippets.

@pvlasov
Created March 30, 2016 13:02
Show Gist options
  • Save pvlasov/064e061a30fb3f2bad168f7b561134d2 to your computer and use it in GitHub Desktop.
Save pvlasov/064e061a30fb3f2bad168f7b561134d2 to your computer and use it in GitHub Desktop.
Code to enable multi-part request processing in Jetty in Equinox - adding multi-part config attribute to the request
if (request.getAttribute(org.eclipse.jetty.server.Request.__MULTIPART_CONFIG_ELEMENT) == null) {
request.setAttribute(org.eclipse.jetty.server.Request.__MULTIPART_CONFIG_ELEMENT, org.eclipse.jetty.util.MultiPartInputStreamParser.__DEFAULT_MULTIPART_CONFIG);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment