Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
01a8fbf9
Commit
01a8fbf9
authored
Aug 17, 2017
by
Philipp Hörist
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[httpupload] Send content-length in header
parent
3c094677
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
httpupload/httpupload.py
httpupload/httpupload.py
+2
-1
No files found.
httpupload/httpupload.py
View file @
01a8fbf9
...
...
@@ -302,7 +302,8 @@ class Base(object):
_
(
'Uploading file via HTTP...'
))
try
:
headers
=
{
'User-Agent'
:
'Gajim %s'
%
gajim
.
version
,
'Content-Type'
:
file
.
mime
}
'Content-Type'
:
file
.
mime
,
'Content-Length'
:
file
.
size
}
request
=
Request
(
file
.
put
,
data
=
file
.
stream
,
headers
=
headers
,
method
=
'PUT'
)
log
.
info
(
"Opening Urllib upload request..."
)
...
...
Philipp Hörist
@lovetox
mentioned in issue
#230 (closed)
·
Aug 17, 2017
mentioned in issue
#230 (closed)
mentioned in issue #230
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment