Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vollt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sonia Zorba
vollt
Commits
1a1c8a3a
Unverified
Commit
1a1c8a3a
authored
6 years ago
by
Grégory Mantelet
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
support content length > 2GB
Merge pull request #107 from vforchi/fix_content_length
parents
afce5871
3e68ae9e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uws/UWSToolBox.java
+16
-22
16 additions, 22 deletions
src/uws/UWSToolBox.java
with
16 additions
and
22 deletions
src/uws/UWSToolBox.java
+
16
−
22
View file @
1a1c8a3a
...
...
@@ -20,26 +20,6 @@ package uws;
* Astronomisches Rechen Institut (ARI)
*/
import
java.io.File
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.PrintWriter
;
import
java.io.UnsupportedEncodingException
;
import
java.lang.reflect.Array
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.net.URLDecoder
;
import
java.net.URLEncoder
;
import
java.util.Date
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
uws.job.ErrorSummary
;
import
uws.job.UWSJob
;
import
uws.job.user.JobOwner
;
...
...
@@ -51,6 +31,20 @@ import uws.service.log.UWSLog;
import
uws.service.request.RequestParser
;
import
uws.service.request.UploadFile
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.*
;
import
java.lang.reflect.Array
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.net.URLDecoder
;
import
java.net.URLEncoder
;
import
java.util.Date
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Some useful functions for the managing of a UWS service.
*
...
...
@@ -532,8 +526,8 @@ public class UWSToolBox {
// Set the HTTP content length:
if
(
contentSize
>
0
)
response
.
setContentLength
((
int
)
contentSize
);
response
.
set
Header
(
"
Content
-
Length
"
,
String
.
valueOf
(
contentSize
)
)
;
// Write the file into the HTTP response:
output
=
response
.
getOutputStream
();
byte
[]
buffer
=
new
byte
[
1024
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment