Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
a34164c1
Commit
a34164c1
authored
Apr 21, 2022
by
罗长华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改sdk签名请求头date名称
parent
e269851f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
framework/src/main/java/io/geekidea/springbootplus/framework/shiro/signature/SignUtils.java
+1
-4
No files found.
framework/src/main/java/io/geekidea/springbootplus/framework/shiro/signature/SignUtils.java
View file @
a34164c1
...
@@ -22,8 +22,6 @@ public class SignUtils {
...
@@ -22,8 +22,6 @@ public class SignUtils {
public
static
final
String
CONTENT_TYPE
=
"Content-Type"
;
public
static
final
String
CONTENT_TYPE
=
"Content-Type"
;
public
static
final
String
DATE
=
"Date"
;
public
static
final
String
NEW_LINE
=
"\n"
;
public
static
final
String
NEW_LINE
=
"\n"
;
public
static
String
buildCanonicalString
(
String
method
,
String
resourcePath
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
String
>
parameters
)
{
public
static
String
buildCanonicalString
(
String
method
,
String
resourcePath
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
String
>
parameters
)
{
...
@@ -37,8 +35,7 @@ public class SignUtils {
...
@@ -37,8 +35,7 @@ public class SignUtils {
for
(
Map
.
Entry
<
String
,
String
>
header
:
headers
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
String
>
header
:
headers
.
entrySet
())
{
if
(
header
.
getKey
()
!=
null
)
{
if
(
header
.
getKey
()
!=
null
)
{
String
lowerKey
=
header
.
getKey
().
toLowerCase
();
String
lowerKey
=
header
.
getKey
().
toLowerCase
();
if
(
lowerKey
.
equals
(
CONTENT_TYPE
.
toLowerCase
())
if
(
lowerKey
.
equals
(
CONTENT_TYPE
.
toLowerCase
()))
{
||
lowerKey
.
equals
(
DATE
.
toLowerCase
()))
{
fixedHeadersToSign
.
put
(
lowerKey
,
header
.
getValue
().
trim
());
fixedHeadersToSign
.
put
(
lowerKey
,
header
.
getValue
().
trim
());
}
else
if
(
lowerKey
.
startsWith
(
IM_PREFIX
))
{
}
else
if
(
lowerKey
.
startsWith
(
IM_PREFIX
))
{
canonicalizedImHeadersToSign
.
put
(
lowerKey
,
header
.
getValue
().
trim
());
canonicalizedImHeadersToSign
.
put
(
lowerKey
,
header
.
getValue
().
trim
());
...
...
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