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
Open sidebar
Kirill Smelkov
go
Commits
4481df64
Commit
4481df64
authored
15 years ago
by
Rob Pike
Browse files
Options
Download
Email Patches
Plain Diff
fix spelling that is correct but bothers me anyway
R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=33496 CL=33519
parent
6ece1b56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/pkg/http/url.go
src/pkg/http/url.go
+3
-3
No files found.
src/pkg/http/url.go
View file @
4481df64
...
...
@@ -73,7 +73,7 @@ func shouldEscape(c byte) bool {
func
URLUnescape
(
s
string
)
(
string
,
os
.
Error
)
{
// Count %, check that they're well-formed.
n
:=
0
;
anyPlusse
s
:=
false
;
hasPlu
s
:=
false
;
for
i
:=
0
;
i
<
len
(
s
);
{
switch
s
[
i
]
{
case
'%'
:
...
...
@@ -87,14 +87,14 @@ func URLUnescape(s string) (string, os.Error) {
}
i
+=
3
;
case
'+'
:
anyPlusse
s
=
true
;
hasPlu
s
=
true
;
i
++
;
default
:
i
++
}
}
if
n
==
0
&&
!
anyPlusse
s
{
if
n
==
0
&&
!
hasPlu
s
{
return
s
,
nil
}
...
...
This diff is collapsed.
Click to expand it.
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