Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Rocs
Commits
6e18e1f0
Commit
6e18e1f0
authored
Jul 13, 2021
by
Ahmad Samir
Browse files
Use applicatin/gzip mimetype
It's been standarndized since 2012, see:
frameworks/karchive!21
parent
528540e7
Pipeline
#70109
passed with stage
in 4 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/project/project.cpp
View file @
6e18e1f0
...
...
@@ -66,7 +66,7 @@ public:
bool
ProjectPrivate
::
loadProject
(
const
QUrl
&
url
)
{
// extract archive file to temporary working directory
KTar
tar
=
KTar
(
url
.
toLocalFile
(),
QString
(
"application/
x-
gzip"
));
KTar
tar
=
KTar
(
url
.
toLocalFile
(),
QString
Literal
(
"application/gzip"
));
if
(
!
tar
.
open
(
QIODevice
::
ReadOnly
))
{
qCritical
()
<<
"Could not open project archive file for reading, aborting."
;
return
false
;
...
...
@@ -404,7 +404,7 @@ bool Project::projectSave()
qCritical
()
<<
"No project file specified, abort saving."
;
return
false
;
}
KTar
tar
=
KTar
(
d
->
m_projectUrl
.
toLocalFile
(),
QString
(
"application/
x-
gzip"
));
KTar
tar
=
KTar
(
d
->
m_projectUrl
.
toLocalFile
(),
QString
Literal
(
"application/gzip"
));
tar
.
open
(
QIODevice
::
WriteOnly
);
foreach
(
KTextEditor
::
Document
*
document
,
d
->
m_codeDocuments
)
{
...
...
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