Skip to content

Commit

Permalink
Update Server.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Jan 2, 2024
1 parent 299fff1 commit af33f64
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public static void start(int port) {
corsContainer.add(CorsPluginConfig::anyHost);
});

// Increase the upload size limit (arbitrary, but need to be able to deal with large
// calibration JSONs)
javalinConfig.http.maxRequestSize = (long) (50 * 1e6);

javalinConfig.requestLogger.http(
(ctx, ms) -> {
StringJoiner joiner =
Expand Down

0 comments on commit af33f64

Please sign in to comment.