Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
6211b596
Commit
6211b596
authored
Apr 18, 2011
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mime: add a TODO, fix the format of an error
R=r, rsc1 CC=golang-dev
https://golang.org/cl/4440054
parent
98176b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/pkg/mime/mediatype.go
src/pkg/mime/mediatype.go
+4
-2
No files found.
src/pkg/mime/mediatype.go
View file @
6211b596
...
...
@@ -136,7 +136,9 @@ func decode2231Enc(v string) string {
if
len
(
sv
)
!=
3
{
return
""
}
// Ignoring lang in sv[1] for now.
// TODO: ignoring lang in sv[1] for now. If anybody needs it we'll
// need to decide how to expose it in the API. But I'm not sure
// anybody uses it in practice.
charset
:=
strings
.
ToLower
(
sv
[
0
])
if
charset
!=
"us-ascii"
&&
charset
!=
"utf-8"
{
// TODO: unsupported encoding
...
...
@@ -240,7 +242,7 @@ func percentHexUnescape(s string) (string, os.Error) {
if
len
(
s
)
>
3
{
s
=
s
[
0
:
3
]
}
return
""
,
fmt
.
Errorf
(
"
Bogus characters after
%: %q"
,
s
)
return
""
,
fmt
.
Errorf
(
"
mime: bogus characters after %
%: %q"
,
s
)
}
i
+=
3
}
...
...
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