Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WebServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
codecraft
WebServer
Commits
b9320218
Commit
b9320218
authored
1 year ago
by
codecraft
Browse files
Options
Downloads
Patches
Plain Diff
small performance increase
parent
e43effce
No related branches found
No related tags found
1 merge request
!1
Initial feature merge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/http/src/handling/request/form_utils.rs
+1
-1
1 addition, 1 deletion
core/http/src/handling/request/form_utils.rs
core/http/src/handling/response/cookie_management/cookie.rs
+0
-2
0 additions, 2 deletions
core/http/src/handling/response/cookie_management/cookie.rs
with
1 addition
and
3 deletions
core/http/src/handling/request/form_utils.rs
+
1
−
1
View file @
b9320218
...
@@ -157,7 +157,7 @@ impl Request {
...
@@ -157,7 +157,7 @@ impl Request {
.trim_matches
(
'"'
);
.trim_matches
(
'"'
);
let
mut
temp_bound
=
"--"
.to_string
();
let
mut
temp_bound
=
"--"
.to_string
();
temp_bound
.push_str
(
boundary
);
temp_bound
.push_str
(
boundary
);
let
end_boundary
=
format!
(
"{temp_bound}--
\r
"
)
.
as_bytes
()
.to_owned
();
let
end_boundary
:
Vec
<
u8
>
=
format!
(
"{temp_bound}--
\r
"
)
.
into
();
temp_bound
.push
(
'\r'
);
temp_bound
.push
(
'\r'
);
let
boundary
=
temp_bound
.as_bytes
();
let
boundary
=
temp_bound
.as_bytes
();
Self
::
get_multipart_data
(
data
,
boundary
,
&
end_boundary
,
&
mut
keymap
);
Self
::
get_multipart_data
(
data
,
boundary
,
&
end_boundary
,
&
mut
keymap
);
...
...
This diff is collapsed.
Click to expand it.
core/http/src/handling/response/cookie_management/cookie.rs
+
0
−
2
View file @
b9320218
use
std
::{
error
::
Error
,
str
::
FromStr
,
time
::
Duration
};
use
std
::{
error
::
Error
,
str
::
FromStr
,
time
::
Duration
};
use
crate
::
handling
::
response
::
CookieBuilder
;
/// Structure representing a Cookie
/// Structure representing a Cookie
/// # Creating a Cookie:
/// # Creating a Cookie:
/// ```
/// ```
...
...
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